home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / SRC / HOARDDLL.ZIP / 3rdParty / hoard / libhoard-2.0.2 / configure < prev    next >
Encoding:
Text File  |  2000-11-19  |  92.5 KB  |  3,088 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-debug          Enable debugging. [default=no]"
  16. ac_help="$ac_help
  17.   --enable-privateheaps   Enable private heaps. [default=no]"
  18. ac_help="$ac_help
  19.   --enable-windowsnt      Compile for Windows NT. [default=no]"
  20. ac_help="$ac_help
  21.   --enable-sproc          Compile for SGI's sproc library. [default=no]"
  22. ac_help="$ac_help
  23.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  24. ac_help="$ac_help
  25.   --enable-static[=PKGS]  build static libraries [default=yes]"
  26. ac_help="$ac_help
  27.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  28. ac_help="$ac_help
  29.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  30. ac_help="$ac_help
  31.   --disable-libtool-lock  force libtool not to do file locking"
  32.  
  33. # Initialize some variables set by options.
  34. # The variables have the same names as the options, with
  35. # dashes changed to underlines.
  36. build=NONE
  37. cache_file=./config.cache
  38. exec_prefix=NONE
  39. host=NONE
  40. no_create=
  41. nonopt=NONE
  42. no_recursion=
  43. prefix=NONE
  44. program_prefix=NONE
  45. program_suffix=NONE
  46. program_transform_name=s,x,x,
  47. silent=
  48. site=
  49. srcdir=
  50. target=NONE
  51. verbose=
  52. x_includes=NONE
  53. x_libraries=NONE
  54. bindir='${exec_prefix}/bin'
  55. sbindir='${exec_prefix}/sbin'
  56. libexecdir='${exec_prefix}/libexec'
  57. datadir='${prefix}/share'
  58. sysconfdir='${prefix}/etc'
  59. sharedstatedir='${prefix}/com'
  60. localstatedir='${prefix}/var'
  61. libdir='${exec_prefix}/lib'
  62. includedir='${prefix}/include'
  63. oldincludedir='/usr/include'
  64. infodir='${prefix}/info'
  65. mandir='${prefix}/man'
  66.  
  67. # Initialize some other variables.
  68. subdirs=
  69. MFLAGS= MAKEFLAGS=
  70. SHELL=${CONFIG_SHELL-/bin/sh}
  71. # Maximum number of lines to put in a shell here document.
  72. ac_max_here_lines=12
  73.  
  74. ac_prev=
  75. for ac_option
  76. do
  77.  
  78.   # If the previous option needs an argument, assign it.
  79.   if test -n "$ac_prev"; then
  80.     eval "$ac_prev=\$ac_option"
  81.     ac_prev=
  82.     continue
  83.   fi
  84.  
  85.   case "$ac_option" in
  86.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  87.   *) ac_optarg= ;;
  88.   esac
  89.  
  90.   # Accept the important Cygnus configure options, so we can diagnose typos.
  91.  
  92.   case "$ac_option" in
  93.  
  94.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  95.     ac_prev=bindir ;;
  96.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  97.     bindir="$ac_optarg" ;;
  98.  
  99.   -build | --build | --buil | --bui | --bu)
  100.     ac_prev=build ;;
  101.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  102.     build="$ac_optarg" ;;
  103.  
  104.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  105.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  106.     ac_prev=cache_file ;;
  107.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  108.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  109.     cache_file="$ac_optarg" ;;
  110.  
  111.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  112.     ac_prev=datadir ;;
  113.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  114.   | --da=*)
  115.     datadir="$ac_optarg" ;;
  116.  
  117.   -disable-* | --disable-*)
  118.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  119.     # Reject names that are not valid shell variable names.
  120.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  121.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  122.     fi
  123.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  124.     eval "enable_${ac_feature}=no" ;;
  125.  
  126.   -enable-* | --enable-*)
  127.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  128.     # Reject names that are not valid shell variable names.
  129.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  130.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  131.     fi
  132.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  133.     case "$ac_option" in
  134.       *=*) ;;
  135.       *) ac_optarg=yes ;;
  136.     esac
  137.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  138.  
  139.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  140.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  141.   | --exec | --exe | --ex)
  142.     ac_prev=exec_prefix ;;
  143.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  144.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  145.   | --exec=* | --exe=* | --ex=*)
  146.     exec_prefix="$ac_optarg" ;;
  147.  
  148.   -gas | --gas | --ga | --g)
  149.     # Obsolete; use --with-gas.
  150.     with_gas=yes ;;
  151.  
  152.   -help | --help | --hel | --he)
  153.     # Omit some internal or obsolete options to make the list less imposing.
  154.     # This message is too long to be a string in the A/UX 3.1 sh.
  155.     cat << EOF
  156. Usage: configure [options] [host]
  157. Options: [defaults in brackets after descriptions]
  158. Configuration:
  159.   --cache-file=FILE       cache test results in FILE
  160.   --help                  print this message
  161.   --no-create             do not create output files
  162.   --quiet, --silent       do not print \`checking...' messages
  163.   --version               print the version of autoconf that created configure
  164. Directory and file names:
  165.   --prefix=PREFIX         install architecture-independent files in PREFIX
  166.                           [$ac_default_prefix]
  167.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  168.                           [same as prefix]
  169.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  170.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  171.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  172.   --datadir=DIR           read-only architecture-independent data in DIR
  173.                           [PREFIX/share]
  174.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  175.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  176.                           [PREFIX/com]
  177.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  178.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  179.   --includedir=DIR        C header files in DIR [PREFIX/include]
  180.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  181.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  182.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  183.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  184.   --program-prefix=PREFIX prepend PREFIX to installed program names
  185.   --program-suffix=SUFFIX append SUFFIX to installed program names
  186.   --program-transform-name=PROGRAM
  187.                           run sed PROGRAM on installed program names
  188. EOF
  189.     cat << EOF
  190. Host type:
  191.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  192.   --host=HOST             configure for HOST [guessed]
  193.   --target=TARGET         configure for TARGET [TARGET=HOST]
  194. Features and packages:
  195.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  196.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  197.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  198.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  199.   --x-includes=DIR        X include files are in DIR
  200.   --x-libraries=DIR       X library files are in DIR
  201. EOF
  202.     if test -n "$ac_help"; then
  203.       echo "--enable and --with options recognized:$ac_help"
  204.     fi
  205.     exit 0 ;;
  206.  
  207.   -host | --host | --hos | --ho)
  208.     ac_prev=host ;;
  209.   -host=* | --host=* | --hos=* | --ho=*)
  210.     host="$ac_optarg" ;;
  211.  
  212.   -includedir | --includedir | --includedi | --included | --include \
  213.   | --includ | --inclu | --incl | --inc)
  214.     ac_prev=includedir ;;
  215.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  216.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  217.     includedir="$ac_optarg" ;;
  218.  
  219.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  220.     ac_prev=infodir ;;
  221.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  222.     infodir="$ac_optarg" ;;
  223.  
  224.   -libdir | --libdir | --libdi | --libd)
  225.     ac_prev=libdir ;;
  226.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  227.     libdir="$ac_optarg" ;;
  228.  
  229.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  230.   | --libexe | --libex | --libe)
  231.     ac_prev=libexecdir ;;
  232.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  233.   | --libexe=* | --libex=* | --libe=*)
  234.     libexecdir="$ac_optarg" ;;
  235.  
  236.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  237.   | --localstate | --localstat | --localsta | --localst \
  238.   | --locals | --local | --loca | --loc | --lo)
  239.     ac_prev=localstatedir ;;
  240.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  241.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  242.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  243.     localstatedir="$ac_optarg" ;;
  244.  
  245.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  246.     ac_prev=mandir ;;
  247.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  248.     mandir="$ac_optarg" ;;
  249.  
  250.   -nfp | --nfp | --nf)
  251.     # Obsolete; use --without-fp.
  252.     with_fp=no ;;
  253.  
  254.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  255.   | --no-cr | --no-c)
  256.     no_create=yes ;;
  257.  
  258.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  259.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  260.     no_recursion=yes ;;
  261.  
  262.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  263.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  264.   | --oldin | --oldi | --old | --ol | --o)
  265.     ac_prev=oldincludedir ;;
  266.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  267.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  268.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  269.     oldincludedir="$ac_optarg" ;;
  270.  
  271.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  272.     ac_prev=prefix ;;
  273.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  274.     prefix="$ac_optarg" ;;
  275.  
  276.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  277.   | --program-pre | --program-pr | --program-p)
  278.     ac_prev=program_prefix ;;
  279.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  280.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  281.     program_prefix="$ac_optarg" ;;
  282.  
  283.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  284.   | --program-suf | --program-su | --program-s)
  285.     ac_prev=program_suffix ;;
  286.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  287.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  288.     program_suffix="$ac_optarg" ;;
  289.  
  290.   -program-transform-name | --program-transform-name \
  291.   | --program-transform-nam | --program-transform-na \
  292.   | --program-transform-n | --program-transform- \
  293.   | --program-transform | --program-transfor \
  294.   | --program-transfo | --program-transf \
  295.   | --program-trans | --program-tran \
  296.   | --progr-tra | --program-tr | --program-t)
  297.     ac_prev=program_transform_name ;;
  298.   -program-transform-name=* | --program-transform-name=* \
  299.   | --program-transform-nam=* | --program-transform-na=* \
  300.   | --program-transform-n=* | --program-transform-=* \
  301.   | --program-transform=* | --program-transfor=* \
  302.   | --program-transfo=* | --program-transf=* \
  303.   | --program-trans=* | --program-tran=* \
  304.   | --progr-tra=* | --program-tr=* | --program-t=*)
  305.     program_transform_name="$ac_optarg" ;;
  306.  
  307.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  308.   | -silent | --silent | --silen | --sile | --sil)
  309.     silent=yes ;;
  310.  
  311.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  312.     ac_prev=sbindir ;;
  313.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  314.   | --sbi=* | --sb=*)
  315.     sbindir="$ac_optarg" ;;
  316.  
  317.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  318.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  319.   | --sharedst | --shareds | --shared | --share | --shar \
  320.   | --sha | --sh)
  321.     ac_prev=sharedstatedir ;;
  322.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  323.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  324.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  325.   | --sha=* | --sh=*)
  326.     sharedstatedir="$ac_optarg" ;;
  327.  
  328.   -site | --site | --sit)
  329.     ac_prev=site ;;
  330.   -site=* | --site=* | --sit=*)
  331.     site="$ac_optarg" ;;
  332.  
  333.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  334.     ac_prev=srcdir ;;
  335.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  336.     srcdir="$ac_optarg" ;;
  337.  
  338.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  339.   | --syscon | --sysco | --sysc | --sys | --sy)
  340.     ac_prev=sysconfdir ;;
  341.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  342.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  343.     sysconfdir="$ac_optarg" ;;
  344.  
  345.   -target | --target | --targe | --targ | --tar | --ta | --t)
  346.     ac_prev=target ;;
  347.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  348.     target="$ac_optarg" ;;
  349.  
  350.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  351.     verbose=yes ;;
  352.  
  353.   -version | --version | --versio | --versi | --vers)
  354.     echo "configure generated by autoconf version 2.13"
  355.     exit 0 ;;
  356.  
  357.   -with-* | --with-*)
  358.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  359.     # Reject names that are not valid shell variable names.
  360.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  361.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  362.     fi
  363.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  364.     case "$ac_option" in
  365.       *=*) ;;
  366.       *) ac_optarg=yes ;;
  367.     esac
  368.     eval "with_${ac_package}='$ac_optarg'" ;;
  369.  
  370.   -without-* | --without-*)
  371.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  372.     # Reject names that are not valid shell variable names.
  373.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  374.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  375.     fi
  376.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  377.     eval "with_${ac_package}=no" ;;
  378.  
  379.   --x)
  380.     # Obsolete; use --with-x.
  381.     with_x=yes ;;
  382.  
  383.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  384.   | --x-incl | --x-inc | --x-in | --x-i)
  385.     ac_prev=x_includes ;;
  386.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  387.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  388.     x_includes="$ac_optarg" ;;
  389.  
  390.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  391.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  392.     ac_prev=x_libraries ;;
  393.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  394.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  395.     x_libraries="$ac_optarg" ;;
  396.  
  397.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  398.     ;;
  399.  
  400.   *)
  401.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  402.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  403.     fi
  404.     if test "x$nonopt" != xNONE; then
  405.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  406.     fi
  407.     nonopt="$ac_option"
  408.     ;;
  409.  
  410.   esac
  411. done
  412.  
  413. if test -n "$ac_prev"; then
  414.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  415. fi
  416.  
  417. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  418.  
  419. # File descriptor usage:
  420. # 0 standard input
  421. # 1 file creation
  422. # 2 errors and warnings
  423. # 3 some systems may open it to /dev/tty
  424. # 4 used on the Kubota Titan
  425. # 6 checking for... messages and results
  426. # 5 compiler messages saved in config.log
  427. if test "$silent" = yes; then
  428.   exec 6>/dev/null
  429. else
  430.   exec 6>&1
  431. fi
  432. exec 5>./config.log
  433.  
  434. echo "\
  435. This file contains any messages produced by compilers while
  436. running configure, to aid debugging if configure makes a mistake.
  437. " 1>&5
  438.  
  439. # Strip out --no-create and --no-recursion so they do not pile up.
  440. # Also quote any args containing shell metacharacters.
  441. ac_configure_args=
  442. for ac_arg
  443. do
  444.   case "$ac_arg" in
  445.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  446.   | --no-cr | --no-c) ;;
  447.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  448.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  449.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  450.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  451.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  452.   esac
  453. done
  454.  
  455. # NLS nuisances.
  456. # Only set these to C if already set.  These must not be set unconditionally
  457. # because not all systems understand e.g. LANG=C (notably SCO).
  458. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  459. # Non-C LC_CTYPE values break the ctype check.
  460. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  461. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  462. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  463. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  464.  
  465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  466. rm -rf conftest* confdefs.h
  467. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  468. echo > confdefs.h
  469.  
  470. # A filename unique to this package, relative to the directory that
  471. # configure is in, which we can look for to find out if srcdir is correct.
  472. ac_unique_file=superblock.h
  473.  
  474. # Find the source files, if location was not specified.
  475. if test -z "$srcdir"; then
  476.   ac_srcdir_defaulted=yes
  477.   # Try the directory containing this script, then its parent.
  478.   ac_prog=$0
  479.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  480.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  481.   srcdir=$ac_confdir
  482.   if test ! -r $srcdir/$ac_unique_file; then
  483.     srcdir=..
  484.   fi
  485. else
  486.   ac_srcdir_defaulted=no
  487. fi
  488. if test ! -r $srcdir/$ac_unique_file; then
  489.   if test "$ac_srcdir_defaulted" = yes; then
  490.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  491.   else
  492.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  493.   fi
  494. fi
  495. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  496.  
  497. # Prefer explicitly selected file to automatically selected ones.
  498. if test -z "$CONFIG_SITE"; then
  499.   if test "x$prefix" != xNONE; then
  500.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  501.   else
  502.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  503.   fi
  504. fi
  505. for ac_site_file in $CONFIG_SITE; do
  506.   if test -r "$ac_site_file"; then
  507.     echo "loading site script $ac_site_file"
  508.     . "$ac_site_file"
  509.   fi
  510. done
  511.  
  512. if test -r "$cache_file"; then
  513.   echo "loading cache $cache_file"
  514.   . $cache_file
  515. else
  516.   echo "creating cache $cache_file"
  517.   > $cache_file
  518. fi
  519.  
  520. ac_ext=c
  521. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  522. ac_cpp='$CPP $CPPFLAGS'
  523. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  524. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  525. cross_compiling=$ac_cv_prog_cc_cross
  526.  
  527. ac_exeext=
  528. ac_objext=o
  529. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  530.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  531.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  532.     ac_n= ac_c='
  533. ' ac_t='    '
  534.   else
  535.     ac_n=-n ac_c= ac_t=
  536.   fi
  537. else
  538.   ac_n= ac_c='\c' ac_t=
  539. fi
  540.  
  541.  
  542. ac_aux_dir=
  543. for ac_dir in autoconf $srcdir/autoconf; do
  544.   if test -f $ac_dir/install-sh; then
  545.     ac_aux_dir=$ac_dir
  546.     ac_install_sh="$ac_aux_dir/install-sh -c"
  547.     break
  548.   elif test -f $ac_dir/install.sh; then
  549.     ac_aux_dir=$ac_dir
  550.     ac_install_sh="$ac_aux_dir/install.sh -c"
  551.     break
  552.   fi
  553. done
  554. if test -z "$ac_aux_dir"; then
  555.   { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
  556. fi
  557. ac_config_guess=$ac_aux_dir/config.guess
  558. ac_config_sub=$ac_aux_dir/config.sub
  559. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  560.  
  561.  
  562. # Find a good install program.  We prefer a C program (faster),
  563. # so one script is as good as another.  But avoid the broken or
  564. # incompatible versions:
  565. # SysV /etc/install, /usr/sbin/install
  566. # SunOS /usr/etc/install
  567. # IRIX /sbin/install
  568. # AIX /bin/install
  569. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  570. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  571. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  572. # ./install, which can be erroneously created by make from ./install.sh.
  573. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  574. echo "configure:575: checking for a BSD compatible install" >&5
  575. if test -z "$INSTALL"; then
  576. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  577.   echo $ac_n "(cached) $ac_c" 1>&6
  578. else
  579.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  580.   for ac_dir in $PATH; do
  581.     # Account for people who put trailing slashes in PATH elements.
  582.     case "$ac_dir/" in
  583.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  584.     *)
  585.       # OSF1 and SCO ODT 3.0 have their own names for install.
  586.       # Don't use installbsd from OSF since it installs stuff as root
  587.       # by default.
  588.       for ac_prog in ginstall scoinst install; do
  589.         if test -f $ac_dir/$ac_prog; then
  590.       if test $ac_prog = install &&
  591.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  592.         # AIX install.  It has an incompatible calling convention.
  593.         :
  594.       else
  595.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  596.         break 2
  597.       fi
  598.     fi
  599.       done
  600.       ;;
  601.     esac
  602.   done
  603.   IFS="$ac_save_IFS"
  604.  
  605. fi
  606.   if test "${ac_cv_path_install+set}" = set; then
  607.     INSTALL="$ac_cv_path_install"
  608.   else
  609.     # As a last resort, use the slow shell script.  We don't cache a
  610.     # path for INSTALL within a source directory, because that will
  611.     # break other packages using the cache if that directory is
  612.     # removed, or if the path is relative.
  613.     INSTALL="$ac_install_sh"
  614.   fi
  615. fi
  616. echo "$ac_t""$INSTALL" 1>&6
  617.  
  618. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  619. # It thinks the first close brace ends the variable substitution.
  620. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  621.  
  622. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  623.  
  624. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  625.  
  626. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  627. echo "configure:628: checking whether build environment is sane" >&5
  628. # Just in case
  629. sleep 1
  630. echo timestamp > conftestfile
  631. # Do `set' in a subshell so we don't clobber the current shell's
  632. # arguments.  Must try -L first in case configure is actually a
  633. # symlink; some systems play weird games with the mod time of symlinks
  634. # (eg FreeBSD returns the mod time of the symlink's containing
  635. # directory).
  636. if (
  637.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  638.    if test "$*" = "X"; then
  639.       # -L didn't work.
  640.       set X `ls -t $srcdir/configure conftestfile`
  641.    fi
  642.    if test "$*" != "X $srcdir/configure conftestfile" \
  643.       && test "$*" != "X conftestfile $srcdir/configure"; then
  644.  
  645.       # If neither matched, then we have a broken ls.  This can happen
  646.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  647.       # broken ls alias from the environment.  This has actually
  648.       # happened.  Such a system could not be considered "sane".
  649.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  650. alias in your environment" 1>&2; exit 1; }
  651.    fi
  652.  
  653.    test "$2" = conftestfile
  654.    )
  655. then
  656.    # Ok.
  657.    :
  658. else
  659.    { echo "configure: error: newly created file is older than distributed files!
  660. Check your system clock" 1>&2; exit 1; }
  661. fi
  662. rm -f conftest*
  663. echo "$ac_t""yes" 1>&6
  664. if test "$program_transform_name" = s,x,x,; then
  665.   program_transform_name=
  666. else
  667.   # Double any \ or $.  echo might interpret backslashes.
  668.   cat <<\EOF_SED > conftestsed
  669. s,\\,\\\\,g; s,\$,$$,g
  670. EOF_SED
  671.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  672.   rm -f conftestsed
  673. fi
  674. test "$program_prefix" != NONE &&
  675.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  676. # Use a double $ so make ignores it.
  677. test "$program_suffix" != NONE &&
  678.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  679.  
  680. # sed with no file args requires a program.
  681. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  682.  
  683. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  684. echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5
  685. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  686. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  687.   echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689.   cat > conftestmake <<\EOF
  690. all:
  691.     @echo 'ac_maketemp="${MAKE}"'
  692. EOF
  693. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  694. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  695. if test -n "$ac_maketemp"; then
  696.   eval ac_cv_prog_make_${ac_make}_set=yes
  697. else
  698.   eval ac_cv_prog_make_${ac_make}_set=no
  699. fi
  700. rm -f conftestmake
  701. fi
  702. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  703.   echo "$ac_t""yes" 1>&6
  704.   SET_MAKE=
  705. else
  706.   echo "$ac_t""no" 1>&6
  707.   SET_MAKE="MAKE=${MAKE-make}"
  708. fi
  709.  
  710.  
  711.  
  712. PACKAGE=libhoard
  713.  
  714. VERSION=2.0
  715.  
  716. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  717.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  718. fi
  719. cat >> confdefs.h <<EOF
  720. #define PACKAGE "$PACKAGE"
  721. EOF
  722.  
  723. cat >> confdefs.h <<EOF
  724. #define VERSION "$VERSION"
  725. EOF
  726.  
  727.  
  728.  
  729. missing_dir=`cd $ac_aux_dir && pwd`
  730. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  731. echo "configure:732: checking for working aclocal" >&5
  732. # Run test in a subshell; some versions of sh will print an error if
  733. # an executable is not found, even if stderr is redirected.
  734. # Redirect stdin to placate older versions of autoconf.  Sigh.
  735. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  736.    ACLOCAL=aclocal
  737.    echo "$ac_t""found" 1>&6
  738. else
  739.    ACLOCAL="$missing_dir/missing aclocal"
  740.    echo "$ac_t""missing" 1>&6
  741. fi
  742.  
  743. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  744. echo "configure:745: checking for working autoconf" >&5
  745. # Run test in a subshell; some versions of sh will print an error if
  746. # an executable is not found, even if stderr is redirected.
  747. # Redirect stdin to placate older versions of autoconf.  Sigh.
  748. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  749.    AUTOCONF=autoconf
  750.    echo "$ac_t""found" 1>&6
  751. else
  752.    AUTOCONF="$missing_dir/missing autoconf"
  753.    echo "$ac_t""missing" 1>&6
  754. fi
  755.  
  756. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  757. echo "configure:758: checking for working automake" >&5
  758. # Run test in a subshell; some versions of sh will print an error if
  759. # an executable is not found, even if stderr is redirected.
  760. # Redirect stdin to placate older versions of autoconf.  Sigh.
  761. if (automake --version) < /dev/null > /dev/null 2>&1; then
  762.    AUTOMAKE=automake
  763.    echo "$ac_t""found" 1>&6
  764. else
  765.    AUTOMAKE="$missing_dir/missing automake"
  766.    echo "$ac_t""missing" 1>&6
  767. fi
  768.  
  769. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  770. echo "configure:771: checking for working autoheader" >&5
  771. # Run test in a subshell; some versions of sh will print an error if
  772. # an executable is not found, even if stderr is redirected.
  773. # Redirect stdin to placate older versions of autoconf.  Sigh.
  774. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  775.    AUTOHEADER=autoheader
  776.    echo "$ac_t""found" 1>&6
  777. else
  778.    AUTOHEADER="$missing_dir/missing autoheader"
  779.    echo "$ac_t""missing" 1>&6
  780. fi
  781.  
  782. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  783. echo "configure:784: checking for working makeinfo" >&5
  784. # Run test in a subshell; some versions of sh will print an error if
  785. # an executable is not found, even if stderr is redirected.
  786. # Redirect stdin to placate older versions of autoconf.  Sigh.
  787. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  788.    MAKEINFO=makeinfo
  789.    echo "$ac_t""found" 1>&6
  790. else
  791.    MAKEINFO="$missing_dir/missing makeinfo"
  792.    echo "$ac_t""missing" 1>&6
  793. fi
  794.  
  795.  
  796.  
  797. # Check whether --enable-debug or --disable-debug was given.
  798. if test "${enable_debug+set}" = set; then
  799.   enableval="$enable_debug"
  800.   debug=$enableval
  801. else
  802.   debug=no
  803. fi
  804.  
  805.  
  806.  
  807. if test X"$debug" = Xyes; then
  808.   DEBUG_TRUE=
  809.   DEBUG_FALSE='#'
  810. else
  811.   DEBUG_TRUE='#'
  812.   DEBUG_FALSE=
  813. fi
  814.  
  815. # Check whether --enable-privateheaps or --disable-privateheaps was given.
  816. if test "${enable_privateheaps+set}" = set; then
  817.   enableval="$enable_privateheaps"
  818.   privateheaps=$enableval
  819. else
  820.   privateheaps=no
  821. fi
  822.  
  823.  
  824.  
  825. if test X"$privateheaps" = Xyes; then
  826.   PRIVATEHEAPS_TRUE=
  827.   PRIVATEHEAPS_FALSE='#'
  828. else
  829.   PRIVATEHEAPS_TRUE='#'
  830.   PRIVATEHEAPS_FALSE=
  831. fi
  832.  
  833. # Check whether --enable-windowsnt or --disable-windowsnt was given.
  834. if test "${enable_windowsnt+set}" = set; then
  835.   enableval="$enable_windowsnt"
  836.   windowsnt=$enableval
  837. else
  838.   windowsnt=no
  839. fi
  840.  
  841.  
  842.  
  843. if test X"$windowsnt" = Xyes; then
  844.   WINDOWSNT_TRUE=
  845.   WINDOWSNT_FALSE='#'
  846. else
  847.   WINDOWSNT_TRUE='#'
  848.   WINDOWSNT_FALSE=
  849. fi
  850.  
  851. # Check whether --enable-sproc or --disable-sproc was given.
  852. if test "${enable_sproc+set}" = set; then
  853.   enableval="$enable_sproc"
  854.   sproc=$enableval
  855. else
  856.   sproc=no
  857. fi
  858.  
  859.  
  860.  
  861. if test X"$sproc" = Xyes; then
  862.   SPROC_TRUE=
  863.   SPROC_FALSE='#'
  864. else
  865.   SPROC_TRUE='#'
  866.   SPROC_FALSE=
  867. fi
  868.  
  869. if test "$debug" != "no"; then
  870.     CFLAGS="$CFLAGS -g -DDEBUG"
  871.     CXXFLAGS="$CXXFLAGS -g"
  872. else
  873.     CFLAGS="$CFLAGS -DNDEBUG"
  874.     CXXFLAGS="$CXXFLAGS -DNDEBUG"
  875. fi
  876.  
  877. # Check whether --enable-shared or --disable-shared was given.
  878. if test "${enable_shared+set}" = set; then
  879.   enableval="$enable_shared"
  880.   p=${PACKAGE-default}
  881. case "$enableval" in
  882. yes) enable_shared=yes ;;
  883. no) enable_shared=no ;;
  884. *)
  885.   enable_shared=no
  886.   # Look at the argument we got.  We use all the common list separators.
  887.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  888.   for pkg in $enableval; do
  889.     if test "X$pkg" = "X$p"; then
  890.       enable_shared=yes
  891.     fi
  892.   done
  893.   IFS="$ac_save_ifs"
  894.   ;;
  895. esac
  896. else
  897.   enable_shared=yes
  898. fi
  899.  
  900. # Check whether --enable-static or --disable-static was given.
  901. if test "${enable_static+set}" = set; then
  902.   enableval="$enable_static"
  903.   p=${PACKAGE-default}
  904. case "$enableval" in
  905. yes) enable_static=yes ;;
  906. no) enable_static=no ;;
  907. *)
  908.   enable_static=no
  909.   # Look at the argument we got.  We use all the common list separators.
  910.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  911.   for pkg in $enableval; do
  912.     if test "X$pkg" = "X$p"; then
  913.       enable_static=yes
  914.     fi
  915.   done
  916.   IFS="$ac_save_ifs"
  917.   ;;
  918. esac
  919. else
  920.   enable_static=yes
  921. fi
  922.  
  923. # Check whether --enable-fast-install or --disable-fast-install was given.
  924. if test "${enable_fast_install+set}" = set; then
  925.   enableval="$enable_fast_install"
  926.   p=${PACKAGE-default}
  927. case "$enableval" in
  928. yes) enable_fast_install=yes ;;
  929. no) enable_fast_install=no ;;
  930. *)
  931.   enable_fast_install=no
  932.   # Look at the argument we got.  We use all the common list separators.
  933.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  934.   for pkg in $enableval; do
  935.     if test "X$pkg" = "X$p"; then
  936.       enable_fast_install=yes
  937.     fi
  938.   done
  939.   IFS="$ac_save_ifs"
  940.   ;;
  941. esac
  942. else
  943.   enable_fast_install=yes
  944. fi
  945.  
  946.  
  947. # Make sure we can run config.sub.
  948. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  949. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  950. fi
  951.  
  952. echo $ac_n "checking host system type""... $ac_c" 1>&6
  953. echo "configure:954: checking host system type" >&5
  954.  
  955. host_alias=$host
  956. case "$host_alias" in
  957. NONE)
  958.   case $nonopt in
  959.   NONE)
  960.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  961.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  962.     fi ;;
  963.   *) host_alias=$nonopt ;;
  964.   esac ;;
  965. esac
  966.  
  967. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  968. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  969. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  970. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  971. echo "$ac_t""$host" 1>&6
  972.  
  973. echo $ac_n "checking build system type""... $ac_c" 1>&6
  974. echo "configure:975: checking build system type" >&5
  975.  
  976. build_alias=$build
  977. case "$build_alias" in
  978. NONE)
  979.   case $nonopt in
  980.   NONE) build_alias=$host_alias ;;
  981.   *) build_alias=$nonopt ;;
  982.   esac ;;
  983. esac
  984.  
  985. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  986. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  987. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  988. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  989. echo "$ac_t""$build" 1>&6
  990.  
  991. # Extract the first word of "ranlib", so it can be a program name with args.
  992. set dummy ranlib; ac_word=$2
  993. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  994. echo "configure:995: checking for $ac_word" >&5
  995. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  996.   echo $ac_n "(cached) $ac_c" 1>&6
  997. else
  998.   if test -n "$RANLIB"; then
  999.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1000. else
  1001.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1002.   ac_dummy="$PATH"
  1003.   for ac_dir in $ac_dummy; do
  1004.     test -z "$ac_dir" && ac_dir=.
  1005.     if test -f $ac_dir/$ac_word; then
  1006.       ac_cv_prog_RANLIB="ranlib"
  1007.       break
  1008.     fi
  1009.   done
  1010.   IFS="$ac_save_ifs"
  1011.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1012. fi
  1013. fi
  1014. RANLIB="$ac_cv_prog_RANLIB"
  1015. if test -n "$RANLIB"; then
  1016.   echo "$ac_t""$RANLIB" 1>&6
  1017. else
  1018.   echo "$ac_t""no" 1>&6
  1019. fi
  1020.  
  1021. # Extract the first word of "gcc", so it can be a program name with args.
  1022. set dummy gcc; ac_word=$2
  1023. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1024. echo "configure:1025: checking for $ac_word" >&5
  1025. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1026.   echo $ac_n "(cached) $ac_c" 1>&6
  1027. else
  1028.   if test -n "$CC"; then
  1029.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1030. else
  1031.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1032.   ac_dummy="$PATH"
  1033.   for ac_dir in $ac_dummy; do
  1034.     test -z "$ac_dir" && ac_dir=.
  1035.     if test -f $ac_dir/$ac_word; then
  1036.       ac_cv_prog_CC="gcc"
  1037.       break
  1038.     fi
  1039.   done
  1040.   IFS="$ac_save_ifs"
  1041. fi
  1042. fi
  1043. CC="$ac_cv_prog_CC"
  1044. if test -n "$CC"; then
  1045.   echo "$ac_t""$CC" 1>&6
  1046. else
  1047.   echo "$ac_t""no" 1>&6
  1048. fi
  1049.  
  1050. if test -z "$CC"; then
  1051.   # Extract the first word of "cc", so it can be a program name with args.
  1052. set dummy cc; ac_word=$2
  1053. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1054. echo "configure:1055: checking for $ac_word" >&5
  1055. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1056.   echo $ac_n "(cached) $ac_c" 1>&6
  1057. else
  1058.   if test -n "$CC"; then
  1059.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1060. else
  1061.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1062.   ac_prog_rejected=no
  1063.   ac_dummy="$PATH"
  1064.   for ac_dir in $ac_dummy; do
  1065.     test -z "$ac_dir" && ac_dir=.
  1066.     if test -f $ac_dir/$ac_word; then
  1067.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1068.         ac_prog_rejected=yes
  1069.     continue
  1070.       fi
  1071.       ac_cv_prog_CC="cc"
  1072.       break
  1073.     fi
  1074.   done
  1075.   IFS="$ac_save_ifs"
  1076. if test $ac_prog_rejected = yes; then
  1077.   # We found a bogon in the path, so make sure we never use it.
  1078.   set dummy $ac_cv_prog_CC
  1079.   shift
  1080.   if test $# -gt 0; then
  1081.     # We chose a different compiler from the bogus one.
  1082.     # However, it has the same basename, so the bogon will be chosen
  1083.     # first if we set CC to just the basename; use the full file name.
  1084.     shift
  1085.     set dummy "$ac_dir/$ac_word" "$@"
  1086.     shift
  1087.     ac_cv_prog_CC="$@"
  1088.   fi
  1089. fi
  1090. fi
  1091. fi
  1092. CC="$ac_cv_prog_CC"
  1093. if test -n "$CC"; then
  1094.   echo "$ac_t""$CC" 1>&6
  1095. else
  1096.   echo "$ac_t""no" 1>&6
  1097. fi
  1098.  
  1099.   if test -z "$CC"; then
  1100.     case "`uname -s`" in
  1101.     *win32* | *WIN32*)
  1102.       # Extract the first word of "cl", so it can be a program name with args.
  1103. set dummy cl; ac_word=$2
  1104. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1105. echo "configure:1106: checking for $ac_word" >&5
  1106. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1107.   echo $ac_n "(cached) $ac_c" 1>&6
  1108. else
  1109.   if test -n "$CC"; then
  1110.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1111. else
  1112.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1113.   ac_dummy="$PATH"
  1114.   for ac_dir in $ac_dummy; do
  1115.     test -z "$ac_dir" && ac_dir=.
  1116.     if test -f $ac_dir/$ac_word; then
  1117.       ac_cv_prog_CC="cl"
  1118.       break
  1119.     fi
  1120.   done
  1121.   IFS="$ac_save_ifs"
  1122. fi
  1123. fi
  1124. CC="$ac_cv_prog_CC"
  1125. if test -n "$CC"; then
  1126.   echo "$ac_t""$CC" 1>&6
  1127. else
  1128.   echo "$ac_t""no" 1>&6
  1129. fi
  1130.  ;;
  1131.     esac
  1132.   fi
  1133.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1134. fi
  1135.  
  1136. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1137. echo "configure:1138: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1138.  
  1139. ac_ext=c
  1140. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1141. ac_cpp='$CPP $CPPFLAGS'
  1142. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1143. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1144. cross_compiling=$ac_cv_prog_cc_cross
  1145.  
  1146. cat > conftest.$ac_ext << EOF
  1147.  
  1148. #line 1149 "configure"
  1149. #include "confdefs.h"
  1150.  
  1151. main(){return(0);}
  1152. EOF
  1153. if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1154.   ac_cv_prog_cc_works=yes
  1155.   # If we can't run a trivial program, we are probably using a cross compiler.
  1156.   if (./conftest; exit) 2>/dev/null; then
  1157.     ac_cv_prog_cc_cross=no
  1158.   else
  1159.     ac_cv_prog_cc_cross=yes
  1160.   fi
  1161. else
  1162.   echo "configure: failed program was:" >&5
  1163.   cat conftest.$ac_ext >&5
  1164.   ac_cv_prog_cc_works=no
  1165. fi
  1166. rm -fr conftest*
  1167. ac_ext=c
  1168. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1169. ac_cpp='$CPP $CPPFLAGS'
  1170. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1171. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1172. cross_compiling=$ac_cv_prog_cc_cross
  1173.  
  1174. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1175. if test $ac_cv_prog_cc_works = no; then
  1176.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1177. fi
  1178. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1179. echo "configure:1180: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1180. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1181. cross_compiling=$ac_cv_prog_cc_cross
  1182.  
  1183. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1184. echo "configure:1185: checking whether we are using GNU C" >&5
  1185. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1186.   echo $ac_n "(cached) $ac_c" 1>&6
  1187. else
  1188.   cat > conftest.c <<EOF
  1189. #ifdef __GNUC__
  1190.   yes;
  1191. #endif
  1192. EOF
  1193. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1194.   ac_cv_prog_gcc=yes
  1195. else
  1196.   ac_cv_prog_gcc=no
  1197. fi
  1198. fi
  1199.  
  1200. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1201.  
  1202. if test $ac_cv_prog_gcc = yes; then
  1203.   GCC=yes
  1204. else
  1205.   GCC=
  1206. fi
  1207.  
  1208. ac_test_CFLAGS="${CFLAGS+set}"
  1209. ac_save_CFLAGS="$CFLAGS"
  1210. CFLAGS=
  1211. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1212. echo "configure:1213: checking whether ${CC-cc} accepts -g" >&5
  1213. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1214.   echo $ac_n "(cached) $ac_c" 1>&6
  1215. else
  1216.   echo 'void f(){}' > conftest.c
  1217. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1218.   ac_cv_prog_cc_g=yes
  1219. else
  1220.   ac_cv_prog_cc_g=no
  1221. fi
  1222. rm -f conftest*
  1223.  
  1224. fi
  1225.  
  1226. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1227. if test "$ac_test_CFLAGS" = set; then
  1228.   CFLAGS="$ac_save_CFLAGS"
  1229. elif test $ac_cv_prog_cc_g = yes; then
  1230.   if test "$GCC" = yes; then
  1231.     CFLAGS="-g -O2"
  1232.   else
  1233.     CFLAGS="-g"
  1234.   fi
  1235. else
  1236.   if test "$GCC" = yes; then
  1237.     CFLAGS="-O2"
  1238.   else
  1239.     CFLAGS=
  1240.   fi
  1241. fi
  1242.  
  1243. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1244. if test "${with_gnu_ld+set}" = set; then
  1245.   withval="$with_gnu_ld"
  1246.   test "$withval" = no || with_gnu_ld=yes
  1247. else
  1248.   with_gnu_ld=no
  1249. fi
  1250.  
  1251. ac_prog=ld
  1252. if test "$ac_cv_prog_gcc" = yes; then
  1253.   # Check if gcc -print-prog-name=ld gives a path.
  1254.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1255. echo "configure:1256: checking for ld used by GCC" >&5
  1256.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1257.   case "$ac_prog" in
  1258.     # Accept absolute paths.
  1259.     /* | [A-Za-z]:[\\/]*)
  1260.       re_direlt='/[^/][^/]*/\.\./'
  1261.       # Canonicalize the path of ld
  1262.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1263.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1264.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1265.       done
  1266.       test -z "$LD" && LD="$ac_prog"
  1267.       ;;
  1268.   "")
  1269.     # If it fails, then pretend we aren't using GCC.
  1270.     ac_prog=ld
  1271.     ;;
  1272.   *)
  1273.     # If it is relative, then search for the first ld in PATH.
  1274.     with_gnu_ld=unknown
  1275.     ;;
  1276.   esac
  1277. elif test "$with_gnu_ld" = yes; then
  1278.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1279. echo "configure:1280: checking for GNU ld" >&5
  1280. else
  1281.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1282. echo "configure:1283: checking for non-GNU ld" >&5
  1283. fi
  1284. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1285.   echo $ac_n "(cached) $ac_c" 1>&6
  1286. else
  1287.   if test -z "$LD"; then
  1288.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1289.   for ac_dir in $PATH; do
  1290.     test -z "$ac_dir" && ac_dir=.
  1291.     if test -f "$ac_dir/$ac_prog"; then
  1292.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1293.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1294.       # but apparently some GNU ld's only accept -v.
  1295.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1296.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1297.     test "$with_gnu_ld" != no && break
  1298.       else
  1299.     test "$with_gnu_ld" != yes && break
  1300.       fi
  1301.     fi
  1302.   done
  1303.   IFS="$ac_save_ifs"
  1304. else
  1305.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1306. fi
  1307. fi
  1308.  
  1309. LD="$ac_cv_path_LD"
  1310. if test -n "$LD"; then
  1311.   echo "$ac_t""$LD" 1>&6
  1312. else
  1313.   echo "$ac_t""no" 1>&6
  1314. fi
  1315. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1316.  
  1317. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1318. echo "configure:1319: checking if the linker ($LD) is GNU ld" >&5
  1319. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1320.   echo $ac_n "(cached) $ac_c" 1>&6
  1321. else
  1322.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1323. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1324.   ac_cv_prog_gnu_ld=yes
  1325. else
  1326.   ac_cv_prog_gnu_ld=no
  1327. fi
  1328. fi
  1329.  
  1330. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1331.  
  1332.  
  1333. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1334. echo "configure:1335: checking for BSD-compatible nm" >&5
  1335. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1336.   echo $ac_n "(cached) $ac_c" 1>&6
  1337. else
  1338.   if test -n "$NM"; then
  1339.   # Let the user override the test.
  1340.   ac_cv_path_NM="$NM"
  1341. else
  1342.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1343.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1344.     test -z "$ac_dir" && ac_dir=.
  1345.     if test -f $ac_dir/nm; then
  1346.       # Check to see if the nm accepts a BSD-compat flag.
  1347.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1348.       #   nm: unknown option "B" ignored
  1349.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1350.     ac_cv_path_NM="$ac_dir/nm -B"
  1351.     break
  1352.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1353.     ac_cv_path_NM="$ac_dir/nm -p"
  1354.     break
  1355.       else
  1356.     ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1357.     continue # so that we can try to find one that supports BSD flags
  1358.       fi
  1359.     fi
  1360.   done
  1361.   IFS="$ac_save_ifs"
  1362.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1363. fi
  1364. fi
  1365.  
  1366. NM="$ac_cv_path_NM"
  1367. echo "$ac_t""$NM" 1>&6
  1368.  
  1369.  
  1370. # Check for command to grab the raw symbol name followed by C symbol from nm.
  1371. echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  1372. echo "configure:1373: checking command to parse $NM output" >&5
  1373. if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  1374.   echo $ac_n "(cached) $ac_c" 1>&6
  1375. else
  1376.   # These are sane defaults that work on at least a few old systems.
  1377. # {They come from Ultrix.  What could be older than Ultrix?!! ;)}
  1378.  
  1379. # Character class describing NM global symbol codes.
  1380. ac_symcode='[BCDEGRST]'
  1381.  
  1382. # Regexp to match symbols that can be accessed directly from C.
  1383. ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  1384.  
  1385. # Transform the above into a raw symbol and a C symbol.
  1386. ac_symxfrm='\1 \2\3 \3'
  1387.  
  1388. # Transform an extracted symbol line into a proper C declaration
  1389. ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1390.  
  1391. # Define system-specific variables.
  1392. case "$host_os" in
  1393. aix*)
  1394.   ac_symcode='[BCDT]'
  1395.   ;;
  1396. cygwin* | mingw*)
  1397.   ac_symcode='[ABCDGISTW]'
  1398.   ;;
  1399. hpux*)
  1400.   ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1401.   ;;
  1402. irix*)
  1403.   ac_symcode='[BCDEGRST]'
  1404.   ;;
  1405. solaris*)
  1406.   ac_symcode='[BDT]'
  1407.   ;;
  1408. esac
  1409.  
  1410. # If we're using GNU nm, then use its standard symbol codes.
  1411. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1412.   ac_symcode='[ABCDGISTW]'
  1413. fi
  1414.  
  1415. # Try without a prefix undercore, then with it.
  1416. for ac_symprfx in "" "_"; do
  1417.  
  1418.   ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*     \($ac_symcode\)          *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
  1419.  
  1420.   # Check to see that the pipe works correctly.
  1421.   ac_pipe_works=no
  1422.   rm -f conftest.$ac_ext
  1423.   cat > conftest.$ac_ext <<EOF
  1424. #ifdef __cplusplus
  1425. extern "C" {
  1426. #endif
  1427. char nm_test_var;
  1428. void nm_test_func(){}
  1429. #ifdef __cplusplus
  1430. }
  1431. #endif
  1432. int main(){nm_test_var='a';nm_test_func;return 0;}
  1433. EOF
  1434.  
  1435.   if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1436.     # Now try to grab the symbols.
  1437.     ac_nlist=conftest.nm
  1438.   
  1439.     if { (eval echo configure:1440: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
  1440.  
  1441.       # Try sorting and uniquifying the output.
  1442.       if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
  1443.     mv -f "$ac_nlist"T "$ac_nlist"
  1444.       else
  1445.     rm -f "$ac_nlist"T
  1446.       fi
  1447.  
  1448.       # Make sure that we snagged all the symbols we need.
  1449.       if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
  1450.     if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
  1451.       cat <<EOF > conftest.c
  1452. #ifdef __cplusplus
  1453. extern "C" {
  1454. #endif
  1455.  
  1456. EOF
  1457.       # Now generate the symbol file.
  1458.       eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
  1459.  
  1460.       cat <<EOF >> conftest.c
  1461. #if defined (__STDC__) && __STDC__
  1462. # define lt_ptr_t void *
  1463. #else
  1464. # define lt_ptr_t char *
  1465. # define const
  1466. #endif
  1467.  
  1468. /* The mapping between symbol names and symbols. */
  1469. const struct {
  1470.   const char *name;
  1471.   lt_ptr_t address;
  1472. }
  1473. lt_preloaded_symbols[] =
  1474. {
  1475. EOF
  1476.     sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
  1477.     cat <<\EOF >> conftest.c
  1478.   {0, (lt_ptr_t) 0}
  1479. };
  1480.  
  1481. #ifdef __cplusplus
  1482. }
  1483. #endif
  1484. EOF
  1485.       # Now try linking the two files.
  1486.       mv conftest.$ac_objext conftestm.$ac_objext
  1487.       ac_save_LIBS="$LIBS"
  1488.       ac_save_CFLAGS="$CFLAGS"
  1489.       LIBS="conftestm.$ac_objext"
  1490.       CFLAGS="$CFLAGS$no_builtin_flag"
  1491.       if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1492.         ac_pipe_works=yes
  1493.       else
  1494.         echo "configure: failed program was:" >&5
  1495.         cat conftest.c >&5
  1496.       fi
  1497.       LIBS="$ac_save_LIBS"
  1498.       CFLAGS="$ac_save_CFLAGS"
  1499.     else
  1500.       echo "cannot find nm_test_func in $ac_nlist" >&5
  1501.     fi
  1502.       else
  1503.     echo "cannot find nm_test_var in $ac_nlist" >&5
  1504.       fi
  1505.     else
  1506.       echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
  1507.     fi
  1508.   else
  1509.     echo "$progname: failed program was:" >&5
  1510.     cat conftest.c >&5
  1511.   fi
  1512.   rm -rf conftest*
  1513.  
  1514.   # Do not use the global_symbol_pipe unless it works.
  1515.   if test "$ac_pipe_works" = yes; then
  1516.     if test x"$ac_symprfx" = x"_"; then
  1517.       ac_cv_sys_symbol_underscore=yes
  1518.     else
  1519.       ac_cv_sys_symbol_underscore=no
  1520.     fi
  1521.     break
  1522.   else
  1523.     ac_cv_sys_global_symbol_pipe=
  1524.   fi
  1525. done
  1526.  
  1527. fi
  1528.  
  1529.  
  1530. ac_result=yes
  1531. if test -z "$ac_cv_sys_global_symbol_pipe"; then
  1532.    ac_result=no
  1533. fi
  1534. echo "$ac_t""$ac_result" 1>&6
  1535.  
  1536. echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
  1537. echo "configure:1538: checking for _ prefix in compiled symbols" >&5
  1538. if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
  1539.   echo $ac_n "(cached) $ac_c" 1>&6
  1540. else
  1541.   ac_cv_sys_symbol_underscore=no
  1542. cat > conftest.$ac_ext <<EOF
  1543. void nm_test_func(){}
  1544. int main(){nm_test_func;return 0;}
  1545. EOF
  1546. if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1547.   # Now try to grab the symbols.
  1548.   ac_nlist=conftest.nm
  1549.   if { (eval echo configure:1550: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
  1550.     # See whether the symbols have a leading underscore.
  1551.     if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  1552.       ac_cv_sys_symbol_underscore=yes
  1553.     else
  1554.       if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  1555.     :
  1556.       else
  1557.     echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  1558.       fi
  1559.     fi
  1560.   else
  1561.     echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
  1562.   fi
  1563. else
  1564.   echo "configure: failed program was:" >&5
  1565.   cat conftest.c >&5
  1566. fi
  1567. rm -rf conftest*
  1568.  
  1569. fi
  1570.  
  1571. echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
  1572. USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
  1573.  
  1574. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1575. echo "configure:1576: checking whether ln -s works" >&5
  1576. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1577.   echo $ac_n "(cached) $ac_c" 1>&6
  1578. else
  1579.   rm -f conftestdata
  1580. if ln -s X conftestdata 2>/dev/null
  1581. then
  1582.   rm -f conftestdata
  1583.   ac_cv_prog_LN_S="ln -s"
  1584. else
  1585.   ac_cv_prog_LN_S=ln
  1586. fi
  1587. fi
  1588. LN_S="$ac_cv_prog_LN_S"
  1589. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1590.   echo "$ac_t""yes" 1>&6
  1591. else
  1592.   echo "$ac_t""no" 1>&6
  1593. fi
  1594.  
  1595. if test $host != $build; then
  1596.   ac_tool_prefix=${host_alias}-
  1597. else
  1598.   ac_tool_prefix=
  1599. fi
  1600.  
  1601.  
  1602. # Check for any special flags to pass to ltconfig.
  1603. #
  1604. # the following will cause an existing older ltconfig to fail, so
  1605. # we ignore this at the expense of the cache file... Checking this 
  1606. # will just take longer ... bummer!
  1607. #libtool_flags="--cache-file=$cache_file"
  1608. #
  1609. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1610. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1611. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1612. test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
  1613. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1614. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1615. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1616.  
  1617. # Some flags need to be propagated to the compiler or linker for good
  1618. # libtool support.
  1619. case "$host" in
  1620. *-*-irix6*)
  1621.   # Find out which ABI we are using.
  1622.   echo '#line 1623 "configure"' > conftest.$ac_ext
  1623.   if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1624.     case "`/usr/bin/file conftest.o`" in
  1625.     *32-bit*)
  1626.       LD="${LD-ld} -32"
  1627.       ;;
  1628.     *N32*)
  1629.       LD="${LD-ld} -n32"
  1630.       ;;
  1631.     *64-bit*)
  1632.       LD="${LD-ld} -64"
  1633.       ;;
  1634.     esac
  1635.   fi
  1636.   rm -rf conftest*
  1637.   ;;
  1638.  
  1639. *-*-sco3.2v5*)
  1640.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1641.   SAVE_CFLAGS="$CFLAGS"
  1642.   CFLAGS="$CFLAGS -belf"
  1643.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1644. echo "configure:1645: checking whether the C compiler needs -belf" >&5
  1645. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1646.   echo $ac_n "(cached) $ac_c" 1>&6
  1647. else
  1648.   cat > conftest.$ac_ext <<EOF
  1649. #line 1650 "configure"
  1650. #include "confdefs.h"
  1651.  
  1652. int main() {
  1653.  
  1654. ; return 0; }
  1655. EOF
  1656. if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1657.   rm -rf conftest*
  1658.   lt_cv_cc_needs_belf=yes
  1659. else
  1660.   echo "configure: failed program was:" >&5
  1661.   cat conftest.$ac_ext >&5
  1662.   rm -rf conftest*
  1663.   lt_cv_cc_needs_belf=no
  1664. fi
  1665. rm -f conftest*
  1666. fi
  1667.  
  1668. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1669.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1670.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1671.     CFLAGS="$SAVE_CFLAGS"
  1672.   fi
  1673.   ;;
  1674.  
  1675. *-*-cygwin*)
  1676.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  1677. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  1678. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1679. echo "configure:1680: checking for $ac_word" >&5
  1680. if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1681.   echo $ac_n "(cached) $ac_c" 1>&6
  1682. else
  1683.   if test -n "$DLLTOOL"; then
  1684.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1685. else
  1686.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1687.   ac_dummy="$PATH"
  1688.   for ac_dir in $ac_dummy; do
  1689.     test -z "$ac_dir" && ac_dir=.
  1690.     if test -f $ac_dir/$ac_word; then
  1691.       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  1692.       break
  1693.     fi
  1694.   done
  1695.   IFS="$ac_save_ifs"
  1696. fi
  1697. fi
  1698. DLLTOOL="$ac_cv_prog_DLLTOOL"
  1699. if test -n "$DLLTOOL"; then
  1700.   echo "$ac_t""$DLLTOOL" 1>&6
  1701. else
  1702.   echo "$ac_t""no" 1>&6
  1703. fi
  1704.  
  1705.  
  1706. if test -z "$ac_cv_prog_DLLTOOL"; then
  1707. if test -n "$ac_tool_prefix"; then
  1708.   # Extract the first word of "dlltool", so it can be a program name with args.
  1709. set dummy dlltool; ac_word=$2
  1710. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1711. echo "configure:1712: checking for $ac_word" >&5
  1712. if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1713.   echo $ac_n "(cached) $ac_c" 1>&6
  1714. else
  1715.   if test -n "$DLLTOOL"; then
  1716.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1717. else
  1718.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1719.   ac_dummy="$PATH"
  1720.   for ac_dir in $ac_dummy; do
  1721.     test -z "$ac_dir" && ac_dir=.
  1722.     if test -f $ac_dir/$ac_word; then
  1723.       ac_cv_prog_DLLTOOL="dlltool"
  1724.       break
  1725.     fi
  1726.   done
  1727.   IFS="$ac_save_ifs"
  1728.   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
  1729. fi
  1730. fi
  1731. DLLTOOL="$ac_cv_prog_DLLTOOL"
  1732. if test -n "$DLLTOOL"; then
  1733.   echo "$ac_t""$DLLTOOL" 1>&6
  1734. else
  1735.   echo "$ac_t""no" 1>&6
  1736. fi
  1737.  
  1738. else
  1739.   DLLTOOL="false"
  1740. fi
  1741. fi
  1742.  
  1743. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  1744. set dummy ${ac_tool_prefix}as; ac_word=$2
  1745. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1746. echo "configure:1747: checking for $ac_word" >&5
  1747. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1748.   echo $ac_n "(cached) $ac_c" 1>&6
  1749. else
  1750.   if test -n "$AS"; then
  1751.   ac_cv_prog_AS="$AS" # Let the user override the test.
  1752. else
  1753.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1754.   ac_dummy="$PATH"
  1755.   for ac_dir in $ac_dummy; do
  1756.     test -z "$ac_dir" && ac_dir=.
  1757.     if test -f $ac_dir/$ac_word; then
  1758.       ac_cv_prog_AS="${ac_tool_prefix}as"
  1759.       break
  1760.     fi
  1761.   done
  1762.   IFS="$ac_save_ifs"
  1763. fi
  1764. fi
  1765. AS="$ac_cv_prog_AS"
  1766. if test -n "$AS"; then
  1767.   echo "$ac_t""$AS" 1>&6
  1768. else
  1769.   echo "$ac_t""no" 1>&6
  1770. fi
  1771.  
  1772.  
  1773. if test -z "$ac_cv_prog_AS"; then
  1774. if test -n "$ac_tool_prefix"; then
  1775.   # Extract the first word of "as", so it can be a program name with args.
  1776. set dummy as; ac_word=$2
  1777. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1778. echo "configure:1779: checking for $ac_word" >&5
  1779. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1780.   echo $ac_n "(cached) $ac_c" 1>&6
  1781. else
  1782.   if test -n "$AS"; then
  1783.   ac_cv_prog_AS="$AS" # Let the user override the test.
  1784. else
  1785.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1786.   ac_dummy="$PATH"
  1787.   for ac_dir in $ac_dummy; do
  1788.     test -z "$ac_dir" && ac_dir=.
  1789.     if test -f $ac_dir/$ac_word; then
  1790.       ac_cv_prog_AS="as"
  1791.       break
  1792.     fi
  1793.   done
  1794.   IFS="$ac_save_ifs"
  1795.   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
  1796. fi
  1797. fi
  1798. AS="$ac_cv_prog_AS"
  1799. if test -n "$AS"; then
  1800.   echo "$ac_t""$AS" 1>&6
  1801. else
  1802.   echo "$ac_t""no" 1>&6
  1803. fi
  1804.  
  1805. else
  1806.   AS="false"
  1807. fi
  1808. fi
  1809.  
  1810.  
  1811.   ;;
  1812.  
  1813. esac
  1814.  
  1815. # enable the --disable-libtool-lock switch
  1816.  
  1817. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1818. if test "${enable_libtool_lock+set}" = set; then
  1819.   enableval="$enable_libtool_lock"
  1820.   need_locks=$enableval
  1821. else
  1822.   need_locks=yes
  1823. fi
  1824.  
  1825.  
  1826. if test x"$need_locks" = xno; then
  1827.   libtool_flags="$libtool_flags --disable-lock"
  1828. fi
  1829.  
  1830.  
  1831. # Save cache, so that ltconfig can load it
  1832. cat > confcache <<\EOF
  1833. # This file is a shell script that caches the results of configure
  1834. # tests run on this system so they can be shared between configure
  1835. # scripts and configure runs.  It is not useful on other systems.
  1836. # If it contains results you don't want to keep, you may remove or edit it.
  1837. #
  1838. # By default, configure uses ./config.cache as the cache file,
  1839. # creating it if it does not exist already.  You can give configure
  1840. # the --cache-file=FILE option to use a different cache file; that is
  1841. # what configure does when it calls configure scripts in
  1842. # subdirectories, so they share the cache.
  1843. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1844. # config.status only pays attention to the cache file if you give it the
  1845. # --recheck option to rerun configure.
  1846. #
  1847. EOF
  1848. # The following way of writing the cache mishandles newlines in values,
  1849. # but we know of no workaround that is simple, portable, and efficient.
  1850. # So, don't put newlines in cache variables' values.
  1851. # Ultrix sh set writes to stderr and can't be redirected directly,
  1852. # and sets the high bit in the cache file unless we assign to the vars.
  1853. (set) 2>&1 |
  1854.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1855.   *ac_space=\ *)
  1856.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1857.     # turns \\\\ into \\, and sed turns \\ into \).
  1858.     sed -n \
  1859.       -e "s/'/'\\\\''/g" \
  1860.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1861.     ;;
  1862.   *)
  1863.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1864.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1865.     ;;
  1866.   esac >> confcache
  1867. if cmp -s $cache_file confcache; then
  1868.   :
  1869. else
  1870.   if test -w $cache_file; then
  1871.     echo "updating cache $cache_file"
  1872.     cat confcache > $cache_file
  1873.   else
  1874.     echo "not updating unwritable cache $cache_file"
  1875.   fi
  1876. fi
  1877. rm -f confcache
  1878.  
  1879.  
  1880. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1881. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1882. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
  1883. DLLTOOL="$DLLTOOL" AS="$AS" \
  1884. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1885. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
  1886. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1887.  
  1888. # Reload cache, that may have been modified by ltconfig
  1889. if test -r "$cache_file"; then
  1890.   echo "loading cache $cache_file"
  1891.   . $cache_file
  1892. else
  1893.   echo "creating cache $cache_file"
  1894.   > $cache_file
  1895. fi
  1896.  
  1897.  
  1898. # This can be used to rebuild libtool when needed
  1899. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1900.  
  1901. # Always use our own libtool.
  1902. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1903.  
  1904. # Redirect the config.log output again, so that the ltconfig log is not
  1905. # clobbered by the next message.
  1906. exec 5>>./config.log
  1907.  
  1908. # Extract the first word of "gcc", so it can be a program name with args.
  1909. set dummy gcc; ac_word=$2
  1910. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1911. echo "configure:1912: checking for $ac_word" >&5
  1912. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1913.   echo $ac_n "(cached) $ac_c" 1>&6
  1914. else
  1915.   if test -n "$CC"; then
  1916.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1917. else
  1918.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1919.   ac_dummy="$PATH"
  1920.   for ac_dir in $ac_dummy; do
  1921.     test -z "$ac_dir" && ac_dir=.
  1922.     if test -f $ac_dir/$ac_word; then
  1923.       ac_cv_prog_CC="gcc"
  1924.       break
  1925.     fi
  1926.   done
  1927.   IFS="$ac_save_ifs"
  1928. fi
  1929. fi
  1930. CC="$ac_cv_prog_CC"
  1931. if test -n "$CC"; then
  1932.   echo "$ac_t""$CC" 1>&6
  1933. else
  1934.   echo "$ac_t""no" 1>&6
  1935. fi
  1936.  
  1937. if test -z "$CC"; then
  1938.   # Extract the first word of "cc", so it can be a program name with args.
  1939. set dummy cc; ac_word=$2
  1940. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1941. echo "configure:1942: checking for $ac_word" >&5
  1942. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1943.   echo $ac_n "(cached) $ac_c" 1>&6
  1944. else
  1945.   if test -n "$CC"; then
  1946.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1947. else
  1948.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1949.   ac_prog_rejected=no
  1950.   ac_dummy="$PATH"
  1951.   for ac_dir in $ac_dummy; do
  1952.     test -z "$ac_dir" && ac_dir=.
  1953.     if test -f $ac_dir/$ac_word; then
  1954.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1955.         ac_prog_rejected=yes
  1956.     continue
  1957.       fi
  1958.       ac_cv_prog_CC="cc"
  1959.       break
  1960.     fi
  1961.   done
  1962.   IFS="$ac_save_ifs"
  1963. if test $ac_prog_rejected = yes; then
  1964.   # We found a bogon in the path, so make sure we never use it.
  1965.   set dummy $ac_cv_prog_CC
  1966.   shift
  1967.   if test $# -gt 0; then
  1968.     # We chose a different compiler from the bogus one.
  1969.     # However, it has the same basename, so the bogon will be chosen
  1970.     # first if we set CC to just the basename; use the full file name.
  1971.     shift
  1972.     set dummy "$ac_dir/$ac_word" "$@"
  1973.     shift
  1974.     ac_cv_prog_CC="$@"
  1975.   fi
  1976. fi
  1977. fi
  1978. fi
  1979. CC="$ac_cv_prog_CC"
  1980. if test -n "$CC"; then
  1981.   echo "$ac_t""$CC" 1>&6
  1982. else
  1983.   echo "$ac_t""no" 1>&6
  1984. fi
  1985.  
  1986.   if test -z "$CC"; then
  1987.     case "`uname -s`" in
  1988.     *win32* | *WIN32*)
  1989.       # Extract the first word of "cl", so it can be a program name with args.
  1990. set dummy cl; ac_word=$2
  1991. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1992. echo "configure:1993: checking for $ac_word" >&5
  1993. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1994.   echo $ac_n "(cached) $ac_c" 1>&6
  1995. else
  1996.   if test -n "$CC"; then
  1997.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1998. else
  1999.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2000.   ac_dummy="$PATH"
  2001.   for ac_dir in $ac_dummy; do
  2002.     test -z "$ac_dir" && ac_dir=.
  2003.     if test -f $ac_dir/$ac_word; then
  2004.       ac_cv_prog_CC="cl"
  2005.       break
  2006.     fi
  2007.   done
  2008.   IFS="$ac_save_ifs"
  2009. fi
  2010. fi
  2011. CC="$ac_cv_prog_CC"
  2012. if test -n "$CC"; then
  2013.   echo "$ac_t""$CC" 1>&6
  2014. else
  2015.   echo "$ac_t""no" 1>&6
  2016. fi
  2017.  ;;
  2018.     esac
  2019.   fi
  2020.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2021. fi
  2022.  
  2023. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2024. echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2025.  
  2026. ac_ext=c
  2027. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2028. ac_cpp='$CPP $CPPFLAGS'
  2029. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2030. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2031. cross_compiling=$ac_cv_prog_cc_cross
  2032.  
  2033. cat > conftest.$ac_ext << EOF
  2034.  
  2035. #line 2036 "configure"
  2036. #include "confdefs.h"
  2037.  
  2038. main(){return(0);}
  2039. EOF
  2040. if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2041.   ac_cv_prog_cc_works=yes
  2042.   # If we can't run a trivial program, we are probably using a cross compiler.
  2043.   if (./conftest; exit) 2>/dev/null; then
  2044.     ac_cv_prog_cc_cross=no
  2045.   else
  2046.     ac_cv_prog_cc_cross=yes
  2047.   fi
  2048. else
  2049.   echo "configure: failed program was:" >&5
  2050.   cat conftest.$ac_ext >&5
  2051.   ac_cv_prog_cc_works=no
  2052. fi
  2053. rm -fr conftest*
  2054. ac_ext=c
  2055. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2056. ac_cpp='$CPP $CPPFLAGS'
  2057. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2058. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2059. cross_compiling=$ac_cv_prog_cc_cross
  2060.  
  2061. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2062. if test $ac_cv_prog_cc_works = no; then
  2063.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2064. fi
  2065. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2066. echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2067. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2068. cross_compiling=$ac_cv_prog_cc_cross
  2069.  
  2070. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2071. echo "configure:2072: checking whether we are using GNU C" >&5
  2072. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2073.   echo $ac_n "(cached) $ac_c" 1>&6
  2074. else
  2075.   cat > conftest.c <<EOF
  2076. #ifdef __GNUC__
  2077.   yes;
  2078. #endif
  2079. EOF
  2080. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2081.   ac_cv_prog_gcc=yes
  2082. else
  2083.   ac_cv_prog_gcc=no
  2084. fi
  2085. fi
  2086.  
  2087. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2088.  
  2089. if test $ac_cv_prog_gcc = yes; then
  2090.   GCC=yes
  2091. else
  2092.   GCC=
  2093. fi
  2094.  
  2095. ac_test_CFLAGS="${CFLAGS+set}"
  2096. ac_save_CFLAGS="$CFLAGS"
  2097. CFLAGS=
  2098. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2099. echo "configure:2100: checking whether ${CC-cc} accepts -g" >&5
  2100. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2101.   echo $ac_n "(cached) $ac_c" 1>&6
  2102. else
  2103.   echo 'void f(){}' > conftest.c
  2104. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2105.   ac_cv_prog_cc_g=yes
  2106. else
  2107.   ac_cv_prog_cc_g=no
  2108. fi
  2109. rm -f conftest*
  2110.  
  2111. fi
  2112.  
  2113. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2114. if test "$ac_test_CFLAGS" = set; then
  2115.   CFLAGS="$ac_save_CFLAGS"
  2116. elif test $ac_cv_prog_cc_g = yes; then
  2117.   if test "$GCC" = yes; then
  2118.     CFLAGS="-g -O2"
  2119.   else
  2120.     CFLAGS="-g"
  2121.   fi
  2122. else
  2123.   if test "$GCC" = yes; then
  2124.     CFLAGS="-O2"
  2125.   else
  2126.     CFLAGS=
  2127.   fi
  2128. fi
  2129.  
  2130. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  2131. do
  2132. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2133. set dummy $ac_prog; ac_word=$2
  2134. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2135. echo "configure:2136: checking for $ac_word" >&5
  2136. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  2137.   echo $ac_n "(cached) $ac_c" 1>&6
  2138. else
  2139.   if test -n "$CXX"; then
  2140.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2141. else
  2142.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2143.   ac_dummy="$PATH"
  2144.   for ac_dir in $ac_dummy; do
  2145.     test -z "$ac_dir" && ac_dir=.
  2146.     if test -f $ac_dir/$ac_word; then
  2147.       ac_cv_prog_CXX="$ac_prog"
  2148.       break
  2149.     fi
  2150.   done
  2151.   IFS="$ac_save_ifs"
  2152. fi
  2153. fi
  2154. CXX="$ac_cv_prog_CXX"
  2155. if test -n "$CXX"; then
  2156.   echo "$ac_t""$CXX" 1>&6
  2157. else
  2158.   echo "$ac_t""no" 1>&6
  2159. fi
  2160.  
  2161. test -n "$CXX" && break
  2162. done
  2163. test -n "$CXX" || CXX="gcc"
  2164.  
  2165.  
  2166. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2167. echo "configure:2168: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  2168.  
  2169. ac_ext=C
  2170. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2171. ac_cpp='$CXXCPP $CPPFLAGS'
  2172. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2173. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2174. cross_compiling=$ac_cv_prog_cxx_cross
  2175.  
  2176. cat > conftest.$ac_ext << EOF
  2177.  
  2178. #line 2179 "configure"
  2179. #include "confdefs.h"
  2180.  
  2181. int main(){return(0);}
  2182. EOF
  2183. if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2184.   ac_cv_prog_cxx_works=yes
  2185.   # If we can't run a trivial program, we are probably using a cross compiler.
  2186.   if (./conftest; exit) 2>/dev/null; then
  2187.     ac_cv_prog_cxx_cross=no
  2188.   else
  2189.     ac_cv_prog_cxx_cross=yes
  2190.   fi
  2191. else
  2192.   echo "configure: failed program was:" >&5
  2193.   cat conftest.$ac_ext >&5
  2194.   ac_cv_prog_cxx_works=no
  2195. fi
  2196. rm -fr conftest*
  2197. ac_ext=c
  2198. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2199. ac_cpp='$CPP $CPPFLAGS'
  2200. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2201. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2202. cross_compiling=$ac_cv_prog_cc_cross
  2203.  
  2204. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  2205. if test $ac_cv_prog_cxx_works = no; then
  2206.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  2207. fi
  2208. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2209. echo "configure:2210: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  2210. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  2211. cross_compiling=$ac_cv_prog_cxx_cross
  2212.  
  2213. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  2214. echo "configure:2215: checking whether we are using GNU C++" >&5
  2215. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  2216.   echo $ac_n "(cached) $ac_c" 1>&6
  2217. else
  2218.   cat > conftest.C <<EOF
  2219. #ifdef __GNUC__
  2220.   yes;
  2221. #endif
  2222. EOF
  2223. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2224.   ac_cv_prog_gxx=yes
  2225. else
  2226.   ac_cv_prog_gxx=no
  2227. fi
  2228. fi
  2229.  
  2230. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  2231.  
  2232. if test $ac_cv_prog_gxx = yes; then
  2233.   GXX=yes
  2234. else
  2235.   GXX=
  2236. fi
  2237.  
  2238. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  2239. ac_save_CXXFLAGS="$CXXFLAGS"
  2240. CXXFLAGS=
  2241. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  2242. echo "configure:2243: checking whether ${CXX-g++} accepts -g" >&5
  2243. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  2244.   echo $ac_n "(cached) $ac_c" 1>&6
  2245. else
  2246.   echo 'void f(){}' > conftest.cc
  2247. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  2248.   ac_cv_prog_cxx_g=yes
  2249. else
  2250.   ac_cv_prog_cxx_g=no
  2251. fi
  2252. rm -f conftest*
  2253.  
  2254. fi
  2255.  
  2256. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  2257. if test "$ac_test_CXXFLAGS" = set; then
  2258.   CXXFLAGS="$ac_save_CXXFLAGS"
  2259. elif test $ac_cv_prog_cxx_g = yes; then
  2260.   if test "$GXX" = yes; then
  2261.     CXXFLAGS="-g -O2"
  2262.   else
  2263.     CXXFLAGS="-g"
  2264.   fi
  2265. else
  2266.   if test "$GXX" = yes; then
  2267.     CXXFLAGS="-O2"
  2268.   else
  2269.     CXXFLAGS=
  2270.   fi
  2271. fi
  2272.  
  2273. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2274. echo "configure:2275: checking how to run the C preprocessor" >&5
  2275. # On Suns, sometimes $CPP names a directory.
  2276. if test -n "$CPP" && test -d "$CPP"; then
  2277.   CPP=
  2278. fi
  2279. if test -z "$CPP"; then
  2280. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2281.   echo $ac_n "(cached) $ac_c" 1>&6
  2282. else
  2283.     # This must be in double quotes, not single quotes, because CPP may get
  2284.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  2285.   CPP="${CC-cc} -E"
  2286.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2287.   # not just through cpp.
  2288.   cat > conftest.$ac_ext <<EOF
  2289. #line 2290 "configure"
  2290. #include "confdefs.h"
  2291. #include <assert.h>
  2292. Syntax Error
  2293. EOF
  2294. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2295. { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2296. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2297. if test -z "$ac_err"; then
  2298.   :
  2299. else
  2300.   echo "$ac_err" >&5
  2301.   echo "configure: failed program was:" >&5
  2302.   cat conftest.$ac_ext >&5
  2303.   rm -rf conftest*
  2304.   CPP="${CC-cc} -E -traditional-cpp"
  2305.   cat > conftest.$ac_ext <<EOF
  2306. #line 2307 "configure"
  2307. #include "confdefs.h"
  2308. #include <assert.h>
  2309. Syntax Error
  2310. EOF
  2311. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2312. { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2313. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2314. if test -z "$ac_err"; then
  2315.   :
  2316. else
  2317.   echo "$ac_err" >&5
  2318.   echo "configure: failed program was:" >&5
  2319.   cat conftest.$ac_ext >&5
  2320.   rm -rf conftest*
  2321.   CPP="${CC-cc} -nologo -E"
  2322.   cat > conftest.$ac_ext <<EOF
  2323. #line 2324 "configure"
  2324. #include "confdefs.h"
  2325. #include <assert.h>
  2326. Syntax Error
  2327. EOF
  2328. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2329. { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2330. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2331. if test -z "$ac_err"; then
  2332.   :
  2333. else
  2334.   echo "$ac_err" >&5
  2335.   echo "configure: failed program was:" >&5
  2336.   cat conftest.$ac_ext >&5
  2337.   rm -rf conftest*
  2338.   CPP=/lib/cpp
  2339. fi
  2340. rm -f conftest*
  2341. fi
  2342. rm -f conftest*
  2343. fi
  2344. rm -f conftest*
  2345.   ac_cv_prog_CPP="$CPP"
  2346. fi
  2347.   CPP="$ac_cv_prog_CPP"
  2348. else
  2349.   ac_cv_prog_CPP="$CPP"
  2350. fi
  2351. echo "$ac_t""$CPP" 1>&6
  2352.  
  2353. # Find a good install program.  We prefer a C program (faster),
  2354. # so one script is as good as another.  But avoid the broken or
  2355. # incompatible versions:
  2356. # SysV /etc/install, /usr/sbin/install
  2357. # SunOS /usr/etc/install
  2358. # IRIX /sbin/install
  2359. # AIX /bin/install
  2360. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2361. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2362. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2363. # ./install, which can be erroneously created by make from ./install.sh.
  2364. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  2365. echo "configure:2366: checking for a BSD compatible install" >&5
  2366. if test -z "$INSTALL"; then
  2367. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  2368.   echo $ac_n "(cached) $ac_c" 1>&6
  2369. else
  2370.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  2371.   for ac_dir in $PATH; do
  2372.     # Account for people who put trailing slashes in PATH elements.
  2373.     case "$ac_dir/" in
  2374.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  2375.     *)
  2376.       # OSF1 and SCO ODT 3.0 have their own names for install.
  2377.       # Don't use installbsd from OSF since it installs stuff as root
  2378.       # by default.
  2379.       for ac_prog in ginstall scoinst install; do
  2380.         if test -f $ac_dir/$ac_prog; then
  2381.       if test $ac_prog = install &&
  2382.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  2383.         # AIX install.  It has an incompatible calling convention.
  2384.         :
  2385.       else
  2386.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  2387.         break 2
  2388.       fi
  2389.     fi
  2390.       done
  2391.       ;;
  2392.     esac
  2393.   done
  2394.   IFS="$ac_save_IFS"
  2395.  
  2396. fi
  2397.   if test "${ac_cv_path_install+set}" = set; then
  2398.     INSTALL="$ac_cv_path_install"
  2399.   else
  2400.     # As a last resort, use the slow shell script.  We don't cache a
  2401.     # path for INSTALL within a source directory, because that will
  2402.     # break other packages using the cache if that directory is
  2403.     # removed, or if the path is relative.
  2404.     INSTALL="$ac_install_sh"
  2405.   fi
  2406. fi
  2407. echo "$ac_t""$INSTALL" 1>&6
  2408.  
  2409. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2410. # It thinks the first close brace ends the variable substitution.
  2411. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2412.  
  2413. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  2414.  
  2415. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2416.  
  2417.  
  2418. if test X"$sproc" = Xno; then
  2419. echo $ac_n "checking for pthread_exit in -lpthread""... $ac_c" 1>&6
  2420. echo "configure:2421: checking for pthread_exit in -lpthread" >&5
  2421. ac_lib_var=`echo pthread'_'pthread_exit | sed 'y%./+-%__p_%'`
  2422. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2423.   echo $ac_n "(cached) $ac_c" 1>&6
  2424. else
  2425.   ac_save_LIBS="$LIBS"
  2426. LIBS="-lpthread  $LIBS"
  2427. cat > conftest.$ac_ext <<EOF
  2428. #line 2429 "configure"
  2429. #include "confdefs.h"
  2430. /* Override any gcc2 internal prototype to avoid an error.  */
  2431. /* We use char because int might match the return type of a gcc2
  2432.     builtin and then its argument prototype would still apply.  */
  2433. char pthread_exit();
  2434.  
  2435. int main() {
  2436. pthread_exit()
  2437. ; return 0; }
  2438. EOF
  2439. if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2440.   rm -rf conftest*
  2441.   eval "ac_cv_lib_$ac_lib_var=yes"
  2442. else
  2443.   echo "configure: failed program was:" >&5
  2444.   cat conftest.$ac_ext >&5
  2445.   rm -rf conftest*
  2446.   eval "ac_cv_lib_$ac_lib_var=no"
  2447. fi
  2448. rm -f conftest*
  2449. LIBS="$ac_save_LIBS"
  2450.  
  2451. fi
  2452. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2453.   echo "$ac_t""yes" 1>&6
  2454.   LIBTHREAD1=-lpthread
  2455. else
  2456.   echo "$ac_t""no" 1>&6
  2457. LIBTHREAD1=
  2458. fi
  2459.  
  2460. echo $ac_n "checking for lwp_self in -lthread""... $ac_c" 1>&6
  2461. echo "configure:2462: checking for lwp_self in -lthread" >&5
  2462. ac_lib_var=`echo thread'_'lwp_self | sed 'y%./+-%__p_%'`
  2463. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2464.   echo $ac_n "(cached) $ac_c" 1>&6
  2465. else
  2466.   ac_save_LIBS="$LIBS"
  2467. LIBS="-lthread  $LIBS"
  2468. cat > conftest.$ac_ext <<EOF
  2469. #line 2470 "configure"
  2470. #include "confdefs.h"
  2471. /* Override any gcc2 internal prototype to avoid an error.  */
  2472. /* We use char because int might match the return type of a gcc2
  2473.     builtin and then its argument prototype would still apply.  */
  2474. char lwp_self();
  2475.  
  2476. int main() {
  2477. lwp_self()
  2478. ; return 0; }
  2479. EOF
  2480. if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2481.   rm -rf conftest*
  2482.   eval "ac_cv_lib_$ac_lib_var=yes"
  2483. else
  2484.   echo "configure: failed program was:" >&5
  2485.   cat conftest.$ac_ext >&5
  2486.   rm -rf conftest*
  2487.   eval "ac_cv_lib_$ac_lib_var=no"
  2488. fi
  2489. rm -f conftest*
  2490. LIBS="$ac_save_LIBS"
  2491.  
  2492. fi
  2493. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2494.   echo "$ac_t""yes" 1>&6
  2495.   LIBTHREAD=-lthread
  2496. else
  2497.   echo "$ac_t""no" 1>&6
  2498. LIBTHREAD=$LIBTHREAD1
  2499. fi
  2500.  
  2501. echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
  2502. echo "configure:2503: checking for sched_yield in -lposix4" >&5
  2503. ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
  2504. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2505.   echo $ac_n "(cached) $ac_c" 1>&6
  2506. else
  2507.   ac_save_LIBS="$LIBS"
  2508. LIBS="-lposix4  $LIBS"
  2509. cat > conftest.$ac_ext <<EOF
  2510. #line 2511 "configure"
  2511. #include "confdefs.h"
  2512. /* Override any gcc2 internal prototype to avoid an error.  */
  2513. /* We use char because int might match the return type of a gcc2
  2514.     builtin and then its argument prototype would still apply.  */
  2515. char sched_yield();
  2516.  
  2517. int main() {
  2518. sched_yield()
  2519. ; return 0; }
  2520. EOF
  2521. if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2522.   rm -rf conftest*
  2523.   eval "ac_cv_lib_$ac_lib_var=yes"
  2524. else
  2525.   echo "configure: failed program was:" >&5
  2526.   cat conftest.$ac_ext >&5
  2527.   rm -rf conftest*
  2528.   eval "ac_cv_lib_$ac_lib_var=no"
  2529. fi
  2530. rm -f conftest*
  2531. LIBS="$ac_save_LIBS"
  2532.  
  2533. fi
  2534. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2535.   echo "$ac_t""yes" 1>&6
  2536.   LIBSCHED=-lposix4
  2537. else
  2538.   echo "$ac_t""no" 1>&6
  2539. LIBSCHED=
  2540. fi
  2541.  
  2542. fi
  2543.  
  2544. if test X"$GCC" = X"yes"; then    
  2545.     EXTRA_CXXFLAGS="-fno-exceptions"
  2546.     if test X"$debug" = X"no"; then 
  2547.        OPTFLAGS="-Wall -O6 -fexpensive-optimizations -finline-functions -fomit-frame-pointer -ffast-math"
  2548.     else
  2549.        OPTFLAGS="-Wall -g -fno-inline"
  2550.     fi
  2551. elif $CXX -V 2>&1 | grep "WorkShop"; then
  2552.     SUNWORKSHOP="yes"
  2553.     EXTRA_CXXFLAGS="-mt -noex"
  2554.     if test X"$debug" = X"no"; then
  2555.         OPTFLAGS="-g -fast -xtarget=generic -O2 -dalign"
  2556.     else
  2557.         OPTFLAGS="-g"
  2558.     fi
  2559. else
  2560.     if test X"$debug" = X"no"; then
  2561.         OPTFLAGS="-O"
  2562.     else
  2563.         OPTFLAGS="-g"
  2564.     fi
  2565. fi
  2566.  
  2567.  
  2568.  
  2569. if test X"$SUNWORKSHOP" = Xyes; then
  2570.   USE_WORKSHOP_TRUE=
  2571.   USE_WORKSHOP_FALSE='#'
  2572. else
  2573.   USE_WORKSHOP_TRUE='#'
  2574.   USE_WORKSHOP_FALSE=
  2575. fi
  2576. CFLAGS="$CFLAGS -D_REENTRANT=1 $EXTRA_CFLAGS $OPTFLAGS"
  2577. CXXFLAGS="$CXXFLAGS -D_REENTRANT=1 $EXTRA_CXXFLAGS $OPTFLAGS"
  2578.  
  2579. if test X"$privateheaps" = Xyes; then
  2580.     cat >> confdefs.h <<\EOF
  2581. #define USE_PRIVATE_HEAPS 1
  2582. EOF
  2583.  
  2584. else
  2585.     cat >> confdefs.h <<\EOF
  2586. #define USE_PRIVATE_HEAPS 0
  2587. EOF
  2588.  
  2589. fi
  2590.  
  2591. if test X"$windowsnt" = Xyes; then
  2592.     cat >> confdefs.h <<\EOF
  2593. #define WIN32 1
  2594. EOF
  2595.  
  2596. fi
  2597.  
  2598. if test X"$sproc" = Xyes; then
  2599.     cat >> confdefs.h <<\EOF
  2600. #define USE_SPROC 1
  2601. EOF
  2602.  
  2603. else
  2604.     cat >> confdefs.h <<\EOF
  2605. #define USE_SPROC 0
  2606. EOF
  2607.  
  2608. fi
  2609.  
  2610. echo $ac_n "checking for Linux""... $ac_c" 1>&6
  2611. echo "configure:2612: checking for Linux" >&5
  2612. cat > conftest.$ac_ext <<EOF
  2613. #line 2614 "configure"
  2614. #include "confdefs.h"
  2615. #if defined(__linux)
  2616.   yes
  2617. #endif
  2618.  
  2619. EOF
  2620. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2621.   egrep "yes" >/dev/null 2>&1; then
  2622.   rm -rf conftest*
  2623.   is_linux=yes
  2624. else
  2625.   rm -rf conftest*
  2626.   is_linux=no
  2627. fi
  2628. rm -f conftest*
  2629.  
  2630.  
  2631.  
  2632. if test X"$is_linux" = Xyes; then
  2633.   USE_LINUX_TRUE=
  2634.   USE_LINUX_FALSE='#'
  2635. else
  2636.   USE_LINUX_TRUE='#'
  2637.   USE_LINUX_FALSE=
  2638. fi
  2639. echo "$ac_t""$is_linux" 1>&6
  2640.  
  2641.  
  2642. echo $ac_n "checking for Solaris""... $ac_c" 1>&6
  2643. echo "configure:2644: checking for Solaris" >&5
  2644. cat > conftest.$ac_ext <<EOF
  2645. #line 2646 "configure"
  2646. #include "confdefs.h"
  2647. #if defined(__SVR4)
  2648.   yes
  2649. #endif
  2650.  
  2651. EOF
  2652. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2653.   egrep "yes" >/dev/null 2>&1; then
  2654.   rm -rf conftest*
  2655.   is_solaris=yes
  2656. else
  2657.   rm -rf conftest*
  2658.   is_solaris=no
  2659. fi
  2660. rm -f conftest*
  2661.  
  2662.  
  2663.  
  2664. if test X"$is_solaris" = Xyes; then
  2665.   USE_SOLARIS_TRUE=
  2666.   USE_SOLARIS_FALSE='#'
  2667. else
  2668.   USE_SOLARIS_TRUE='#'
  2669.   USE_SOLARIS_FALSE=
  2670. fi
  2671. echo "$ac_t""$is_solaris" 1>&6
  2672.  
  2673.  
  2674. echo $ac_n "checking for Intel x86""... $ac_c" 1>&6
  2675. echo "configure:2676: checking for Intel x86" >&5
  2676. cat > conftest.$ac_ext <<EOF
  2677. #line 2678 "configure"
  2678. #include "confdefs.h"
  2679. #if defined(i386)
  2680.   yes
  2681. #endif
  2682.  
  2683. EOF
  2684. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2685.   egrep "yes" >/dev/null 2>&1; then
  2686.   rm -rf conftest*
  2687.   is_x86=yes
  2688. else
  2689.   rm -rf conftest*
  2690.   is_x86=no
  2691. fi
  2692. rm -f conftest*
  2693.  
  2694.  
  2695.  
  2696. if test X"$is_x86" = Xyes; then
  2697.   USE_X86_TRUE=
  2698.   USE_X86_FALSE='#'
  2699. else
  2700.   USE_X86_TRUE='#'
  2701.   USE_X86_FALSE=
  2702. fi
  2703. echo "$ac_t""$is_x86" 1>&6
  2704.  
  2705. if test X"$is_x86" = "Xno"; then
  2706. echo $ac_n "checking for SPARC""... $ac_c" 1>&6
  2707. echo "configure:2708: checking for SPARC" >&5
  2708. cat > conftest.$ac_ext <<EOF
  2709. #line 2710 "configure"
  2710. #include "confdefs.h"
  2711. #if defined(sparc)
  2712.   yes
  2713. #endif
  2714.  
  2715. EOF
  2716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2717.   egrep "yes" >/dev/null 2>&1; then
  2718.   rm -rf conftest*
  2719.   is_sparc=yes
  2720. else
  2721.   rm -rf conftest*
  2722.   is_sparc=no
  2723. fi
  2724. rm -f conftest*
  2725.  
  2726.  
  2727.  
  2728. if test X"$is_sparc" = Xyes; then
  2729.   USE_SPARC_TRUE=
  2730.   USE_SPARC_FALSE='#'
  2731. else
  2732.   USE_SPARC_TRUE='#'
  2733.   USE_SPARC_FALSE=
  2734. fi
  2735. echo "$ac_t""$is_sparc" 1>&6
  2736.  
  2737. if test X"$is_sparc" = "Xno"; then
  2738. echo $ac_n "checking for Power PC""... $ac_c" 1>&6
  2739. echo "configure:2740: checking for Power PC" >&5
  2740. cat > conftest.$ac_ext <<EOF
  2741. #line 2742 "configure"
  2742. #include "confdefs.h"
  2743. #if defined(ppc)
  2744.   yes
  2745. #endif
  2746.  
  2747. EOF
  2748. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2749.   egrep "yes" >/dev/null 2>&1; then
  2750.   rm -rf conftest*
  2751.   is_ppc=yes
  2752. else
  2753.   rm -rf conftest*
  2754.   is_ppc=no
  2755. fi
  2756. rm -f conftest*
  2757.  
  2758.  
  2759.  
  2760. if test X"$is_ppc" = Xyes; then
  2761.   USE_PPC_TRUE=
  2762.   USE_PPC_FALSE='#'
  2763. else
  2764.   USE_PPC_TRUE='#'
  2765.   USE_PPC_FALSE=
  2766. fi
  2767. echo "$ac_t""$is_ppc" 1>&6
  2768. fi
  2769. fi
  2770.  
  2771.  
  2772.  
  2773.  
  2774. trap '' 1 2 15
  2775. cat > confcache <<\EOF
  2776. # This file is a shell script that caches the results of configure
  2777. # tests run on this system so they can be shared between configure
  2778. # scripts and configure runs.  It is not useful on other systems.
  2779. # If it contains results you don't want to keep, you may remove or edit it.
  2780. #
  2781. # By default, configure uses ./config.cache as the cache file,
  2782. # creating it if it does not exist already.  You can give configure
  2783. # the --cache-file=FILE option to use a different cache file; that is
  2784. # what configure does when it calls configure scripts in
  2785. # subdirectories, so they share the cache.
  2786. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2787. # config.status only pays attention to the cache file if you give it the
  2788. # --recheck option to rerun configure.
  2789. #
  2790. EOF
  2791. # The following way of writing the cache mishandles newlines in values,
  2792. # but we know of no workaround that is simple, portable, and efficient.
  2793. # So, don't put newlines in cache variables' values.
  2794. # Ultrix sh set writes to stderr and can't be redirected directly,
  2795. # and sets the high bit in the cache file unless we assign to the vars.
  2796. (set) 2>&1 |
  2797.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2798.   *ac_space=\ *)
  2799.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2800.     # turns \\\\ into \\, and sed turns \\ into \).
  2801.     sed -n \
  2802.       -e "s/'/'\\\\''/g" \
  2803.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2804.     ;;
  2805.   *)
  2806.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2807.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2808.     ;;
  2809.   esac >> confcache
  2810. if cmp -s $cache_file confcache; then
  2811.   :
  2812. else
  2813.   if test -w $cache_file; then
  2814.     echo "updating cache $cache_file"
  2815.     cat confcache > $cache_file
  2816.   else
  2817.     echo "not updating unwritable cache $cache_file"
  2818.   fi
  2819. fi
  2820. rm -f confcache
  2821.  
  2822. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2823.  
  2824. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2825. # Let make expand exec_prefix.
  2826. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2827.  
  2828. # Any assignment to VPATH causes Sun make to only execute
  2829. # the first set of double-colon rules, so remove it if not needed.
  2830. # If there is a colon in the path, we need to keep it.
  2831. if test "x$srcdir" = x.; then
  2832.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2833. fi
  2834.  
  2835. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2836.  
  2837. # Transform confdefs.h into DEFS.
  2838. # Protect against shell expansion while executing Makefile rules.
  2839. # Protect against Makefile macro expansion.
  2840. cat > conftest.defs <<\EOF
  2841. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2842. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2843. s%\[%\\&%g
  2844. s%\]%\\&%g
  2845. s%\$%$$%g
  2846. EOF
  2847. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2848. rm -f conftest.defs
  2849.  
  2850.  
  2851. # Without the "./", some shells look in PATH for config.status.
  2852. : ${CONFIG_STATUS=./config.status}
  2853.  
  2854. echo creating $CONFIG_STATUS
  2855. rm -f $CONFIG_STATUS
  2856. cat > $CONFIG_STATUS <<EOF
  2857. #! /bin/sh
  2858. # Generated automatically by configure.
  2859. # Run this file to recreate the current configuration.
  2860. # This directory was configured as follows,
  2861. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2862. #
  2863. # $0 $ac_configure_args
  2864. #
  2865. # Compiler output produced by configure, useful for debugging
  2866. # configure, is in ./config.log if it exists.
  2867.  
  2868. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2869. for ac_option
  2870. do
  2871.   case "\$ac_option" in
  2872.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2873.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2874.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2875.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2876.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2877.     exit 0 ;;
  2878.   -help | --help | --hel | --he | --h)
  2879.     echo "\$ac_cs_usage"; exit 0 ;;
  2880.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2881.   esac
  2882. done
  2883.  
  2884. ac_given_srcdir=$srcdir
  2885. ac_given_INSTALL="$INSTALL"
  2886.  
  2887. trap 'rm -fr `echo "Makefile benchmarks/consume/Makefile benchmarks/larson/Makefile benchmarks/linux-scalability/Makefile benchmarks/shbench/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2888. EOF
  2889. cat >> $CONFIG_STATUS <<EOF
  2890.  
  2891. # Protect against being on the right side of a sed subst in config.status.
  2892. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2893.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2894. $ac_vpsub
  2895. $extrasub
  2896. s%@SHELL@%$SHELL%g
  2897. s%@CFLAGS@%$CFLAGS%g
  2898. s%@CPPFLAGS@%$CPPFLAGS%g
  2899. s%@CXXFLAGS@%$CXXFLAGS%g
  2900. s%@FFLAGS@%$FFLAGS%g
  2901. s%@DEFS@%$DEFS%g
  2902. s%@LDFLAGS@%$LDFLAGS%g
  2903. s%@LIBS@%$LIBS%g
  2904. s%@exec_prefix@%$exec_prefix%g
  2905. s%@prefix@%$prefix%g
  2906. s%@program_transform_name@%$program_transform_name%g
  2907. s%@bindir@%$bindir%g
  2908. s%@sbindir@%$sbindir%g
  2909. s%@libexecdir@%$libexecdir%g
  2910. s%@datadir@%$datadir%g
  2911. s%@sysconfdir@%$sysconfdir%g
  2912. s%@sharedstatedir@%$sharedstatedir%g
  2913. s%@localstatedir@%$localstatedir%g
  2914. s%@libdir@%$libdir%g
  2915. s%@includedir@%$includedir%g
  2916. s%@oldincludedir@%$oldincludedir%g
  2917. s%@infodir@%$infodir%g
  2918. s%@mandir@%$mandir%g
  2919. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2920. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2921. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2922. s%@PACKAGE@%$PACKAGE%g
  2923. s%@VERSION@%$VERSION%g
  2924. s%@ACLOCAL@%$ACLOCAL%g
  2925. s%@AUTOCONF@%$AUTOCONF%g
  2926. s%@AUTOMAKE@%$AUTOMAKE%g
  2927. s%@AUTOHEADER@%$AUTOHEADER%g
  2928. s%@MAKEINFO@%$MAKEINFO%g
  2929. s%@SET_MAKE@%$SET_MAKE%g
  2930. s%@DEBUG_TRUE@%$DEBUG_TRUE%g
  2931. s%@DEBUG_FALSE@%$DEBUG_FALSE%g
  2932. s%@PRIVATEHEAPS_TRUE@%$PRIVATEHEAPS_TRUE%g
  2933. s%@PRIVATEHEAPS_FALSE@%$PRIVATEHEAPS_FALSE%g
  2934. s%@WINDOWSNT_TRUE@%$WINDOWSNT_TRUE%g
  2935. s%@WINDOWSNT_FALSE@%$WINDOWSNT_FALSE%g
  2936. s%@SPROC_TRUE@%$SPROC_TRUE%g
  2937. s%@SPROC_FALSE@%$SPROC_FALSE%g
  2938. s%@host@%$host%g
  2939. s%@host_alias@%$host_alias%g
  2940. s%@host_cpu@%$host_cpu%g
  2941. s%@host_vendor@%$host_vendor%g
  2942. s%@host_os@%$host_os%g
  2943. s%@build@%$build%g
  2944. s%@build_alias@%$build_alias%g
  2945. s%@build_cpu@%$build_cpu%g
  2946. s%@build_vendor@%$build_vendor%g
  2947. s%@build_os@%$build_os%g
  2948. s%@RANLIB@%$RANLIB%g
  2949. s%@CC@%$CC%g
  2950. s%@LD@%$LD%g
  2951. s%@NM@%$NM%g
  2952. s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
  2953. s%@LN_S@%$LN_S%g
  2954. s%@DLLTOOL@%$DLLTOOL%g
  2955. s%@AS@%$AS%g
  2956. s%@LIBTOOL@%$LIBTOOL%g
  2957. s%@CXX@%$CXX%g
  2958. s%@CPP@%$CPP%g
  2959. s%@USE_WORKSHOP_TRUE@%$USE_WORKSHOP_TRUE%g
  2960. s%@USE_WORKSHOP_FALSE@%$USE_WORKSHOP_FALSE%g
  2961. s%@USE_LINUX_TRUE@%$USE_LINUX_TRUE%g
  2962. s%@USE_LINUX_FALSE@%$USE_LINUX_FALSE%g
  2963. s%@USE_SOLARIS_TRUE@%$USE_SOLARIS_TRUE%g
  2964. s%@USE_SOLARIS_FALSE@%$USE_SOLARIS_FALSE%g
  2965. s%@USE_X86_TRUE@%$USE_X86_TRUE%g
  2966. s%@USE_X86_FALSE@%$USE_X86_FALSE%g
  2967. s%@USE_SPARC_TRUE@%$USE_SPARC_TRUE%g
  2968. s%@USE_SPARC_FALSE@%$USE_SPARC_FALSE%g
  2969. s%@USE_PPC_TRUE@%$USE_PPC_TRUE%g
  2970. s%@USE_PPC_FALSE@%$USE_PPC_FALSE%g
  2971. s%@LIBTHREAD@%$LIBTHREAD%g
  2972. s%@LIBSCHED@%$LIBSCHED%g
  2973.  
  2974. CEOF
  2975. EOF
  2976.  
  2977. cat >> $CONFIG_STATUS <<\EOF
  2978.  
  2979. # Split the substitutions into bite-sized pieces for seds with
  2980. # small command number limits, like on Digital OSF/1 and HP-UX.
  2981. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2982. ac_file=1 # Number of current file.
  2983. ac_beg=1 # First line for current file.
  2984. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2985. ac_more_lines=:
  2986. ac_sed_cmds=""
  2987. while $ac_more_lines; do
  2988.   if test $ac_beg -gt 1; then
  2989.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2990.   else
  2991.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2992.   fi
  2993.   if test ! -s conftest.s$ac_file; then
  2994.     ac_more_lines=false
  2995.     rm -f conftest.s$ac_file
  2996.   else
  2997.     if test -z "$ac_sed_cmds"; then
  2998.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2999.     else
  3000.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3001.     fi
  3002.     ac_file=`expr $ac_file + 1`
  3003.     ac_beg=$ac_end
  3004.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3005.   fi
  3006. done
  3007. if test -z "$ac_sed_cmds"; then
  3008.   ac_sed_cmds=cat
  3009. fi
  3010. EOF
  3011.  
  3012. cat >> $CONFIG_STATUS <<EOF
  3013.  
  3014. CONFIG_FILES=\${CONFIG_FILES-"Makefile benchmarks/consume/Makefile benchmarks/larson/Makefile benchmarks/linux-scalability/Makefile benchmarks/shbench/Makefile"}
  3015. EOF
  3016. cat >> $CONFIG_STATUS <<\EOF
  3017. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3018.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3019.   case "$ac_file" in
  3020.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3021.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3022.   *) ac_file_in="${ac_file}.in" ;;
  3023.   esac
  3024.  
  3025.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3026.  
  3027.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3028.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3029.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3030.     # The file is in a subdirectory.
  3031.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3032.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3033.     # A "../" for each directory in $ac_dir_suffix.
  3034.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3035.   else
  3036.     ac_dir_suffix= ac_dots=
  3037.   fi
  3038.  
  3039.   case "$ac_given_srcdir" in
  3040.   .)  srcdir=.
  3041.       if test -z "$ac_dots"; then top_srcdir=.
  3042.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3043.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3044.   *) # Relative path.
  3045.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3046.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3047.   esac
  3048.  
  3049.   case "$ac_given_INSTALL" in
  3050.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3051.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3052.   esac
  3053.  
  3054.   echo creating "$ac_file"
  3055.   rm -f "$ac_file"
  3056.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3057.   case "$ac_file" in
  3058.   *Makefile*) ac_comsub="1i\\
  3059. # $configure_input" ;;
  3060.   *) ac_comsub= ;;
  3061.   esac
  3062.  
  3063.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3064.   sed -e "$ac_comsub
  3065. s%@configure_input@%$configure_input%g
  3066. s%@srcdir@%$srcdir%g
  3067. s%@top_srcdir@%$top_srcdir%g
  3068. s%@INSTALL@%$INSTALL%g
  3069. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3070. fi; done
  3071. rm -f conftest.s*
  3072.  
  3073. EOF
  3074. cat >> $CONFIG_STATUS <<EOF
  3075.  
  3076. EOF
  3077. cat >> $CONFIG_STATUS <<\EOF
  3078.  
  3079. exit 0
  3080. EOF
  3081. chmod +x $CONFIG_STATUS
  3082. rm -fr confdefs* $ac_clean_files
  3083. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3084.  
  3085.  
  3086. echo "Configuration done. Run make to build Hoard."
  3087.  
  3088.